public void doRemoveLocks(File repositoryRoot, String[] paths) throws SVNException {
if (paths == null) {
return;
}
FSFS fsfs = SVNAdminHelper.openRepository(repositoryRoot, true);
for (int i = 0; i < paths.length; i++) {
String path = paths[i];
if (path == null) {
continue;
}
checkCancelled();
SVNLock lock = null;
try {
lock = fsfs.getLockHelper(path, false);
if (lock == null) {
if (myEventHandler != null) {
SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.NOT_LOCKED, null, null, "Path '" + path + "' isn't locked.");
myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN);
}
continue;
}
fsfs.unlockPath(path, lock.getID(), null, true, false);
if (myEventHandler != null) {
SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.UNLOCKED, lock, null, "Removed lock on '" + path + "'.");
myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN);
}
} catch (SVNException svne) {