path = SVNEncodingUtil.uriDecode(path);
pathsToRevisions.put(path, null);
}
checkCancelled();
SVNRepository repository = createRepository(topURL, true);
repository.lock(pathsToRevisions, lockMessage, stealLock, new ISVNLockHandler() {
public void handleLock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException {
if (error != null) {
handleEvent(SVNEventFactory.createLockEvent(null, path, SVNEventAction.LOCK_FAILED, lock, error), ISVNEventHandler.UNKNOWN);
} else {
handleEvent(SVNEventFactory.createLockEvent(null, path, SVNEventAction.LOCKED, lock, null), ISVNEventHandler.UNKNOWN);