private void releaseLocks() throws SVNException { if (myPathsToLockTokens != null) { for (Iterator paths = myPathsToLockTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String token = (String) myPathsToLockTokens.get(path); String absPath = !path.startsWith("/") ? SVNPathUtil.concatToAbs(myBasePath, path) : path; try { myFSFS.unlockPath(absPath, token, myAuthor, false); } catch (SVNException svne) { // ignore exceptions } } } }
private void releaseLocks() { if (myPathsToLockTokens != null) { for (Iterator paths = myPathsToLockTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String token = (String) myPathsToLockTokens.get(path); String absPath = !path.startsWith("/") ? SVNPathUtil.getAbsolutePath(SVNPathUtil.append(myBasePath, path)) : path; try { myFSFS.unlockPath(absPath, token, getAuthor(), false, true); } catch (SVNException svne) { // ignore exceptions } } } }
private void releaseLocks() { if (myPathsToLockTokens != null) { for (Iterator paths = myPathsToLockTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String token = (String) myPathsToLockTokens.get(path); String absPath = !path.startsWith("/") ? SVNPathUtil.getAbsolutePath(SVNPathUtil.append(myBasePath, path)) : path; try { myFSFS.unlockPath(absPath, token, getAuthor(), false, true); } catch (SVNException svne) { // ignore exceptions } } } }
private void releaseLocks(Map<String, String> pathsToLockTokens, boolean breakLocks, boolean runHooks) { if (pathsToLockTokens == null) { return; } for (Iterator<String> paths = pathsToLockTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String token = (String) pathsToLockTokens.get(path); String absPath = !path.startsWith("/") ? SVNPathUtil.getAbsolutePath(SVNPathUtil.append(myBasePath, path)) : path; try { myFSFS.unlockPath(absPath, token, getAuthor(), breakLocks, runHooks); } catch (SVNException svne) { // ignore exceptions } } }
public void unlock(Map pathToTokens, boolean force, ISVNLockHandler handler) throws SVNException { try { openRepository(); for (Iterator paths = pathToTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String token = (String) pathToTokens.get(path); String reposPath = getRepositoryPath(path); SVNErrorMessage error = null; try { myFSFS.unlockPath(reposPath, token, getUserName(), force, true); } catch (SVNException svne) { error = svne.getErrorMessage(); if (!FSErrors.isUnlockError(error)) { throw svne; } } if (handler != null) { handler.handleUnlock(reposPath, new SVNLock(reposPath, token, null, null, null, null), error); } } } finally { closeRepository(); } }
public void unlock(Map pathToTokens, boolean force, ISVNLockHandler handler) throws SVNException { try { openRepository(); for (Iterator paths = pathToTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String token = (String) pathToTokens.get(path); String reposPath = getRepositoryPath(path); SVNErrorMessage error = null; try { myFSFS.unlockPath(reposPath, token, getUserName(), force, true); } catch (SVNException svne) { error = svne.getErrorMessage(); if (!FSErrors.isUnlockError(error)) { throw svne; } } if (handler != null) { handler.handleUnlock(reposPath, new SVNLock(reposPath, token, null, null, null, null), error); } } } finally { closeRepository(); } }
public void unlock(Map pathToTokens, boolean force, ISVNLockHandler handler) throws SVNException { try { openRepository(); for (Iterator paths = pathToTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String token = (String) pathToTokens.get(path); String reposPath = getRepositoryPath(path); SVNErrorMessage error = null; try { myFSFS.unlockPath(reposPath, token, getUserName(), force, true); } catch (SVNException svne) { error = svne.getErrorMessage(); if (!FSErrors.isUnlockError(error)) { throw svne; } } if (handler != null) { handler.handleUnlock(reposPath, new SVNLock(reposPath, token, null, null, null, null), error); } } } finally { closeRepository(); } }
public void unlock(Map pathToTokens, boolean force, ISVNLockHandler handler) throws SVNException { try { openRepository(); for (Iterator paths = pathToTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String token = (String) pathToTokens.get(path); String reposPath = getRepositoryPath(path); SVNErrorMessage error = null; try { myFSFS.unlockPath(reposPath, token, getUserName(), force); } catch (SVNException svne) { error = svne.getErrorMessage(); if (!FSErrors.isUnlockError(error)) { throw svne; } } if (handler != null) { handler.handleUnlock(reposPath, new SVNLock(reposPath, token, null, null, null, null), error); } } } finally { closeRepository(); } }
String lockToken = (String) locks.get(path); try { fsfs.unlockPath(path, lockToken, sourceResource.getUserName(), false, true); } catch (SVNException svne) {
fsfs.unlockPath(path, lock.getID(), null, true, false); if (myEventHandler != null) { SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.UNLOCKED, lock, null, "Removed lock on '" + path + "'.");
fsfs.unlockPath(path, lock.getID(), null, true, false); if (myEventHandler != null) { SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.UNLOCKED, lock, null, "Removed lock on '" + path + "'.");
fsfs.unlockPath(path, lock.getID(), null, true, false); if (myEventHandler != null) { SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.UNLOCKED, lock, null, "Removed lock on '" + path + "'.");