public Map<String, Lock> getLocks(String path, Depth depth) throws ClientException { try { final SVNLock[] locks = svnRepository.getLocks(path); return SVNClientImpl.getLocks(locks); } catch (SVNException e) { throw ClientException.fromException(e); } }
public void finishReport() throws SVNException { // collect locks SVNLock[] locks = null; try { myRepositoryRoot = myRepository.getRepositoryRoot(true); locks = myRepository.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) { throw e; } } if (locks != null) { for (int i = 0; i < locks.length; i++) { SVNLock lock = locks[i]; myLocks.put(lock.getPath(), lock); } } myEditor.setRepositoryInfo(myRepositoryRoot, myLocks); myReporter.finishReport(); }
public void finishReport() throws SVNException { // collect locks SVNLock[] locks = null; try { myRepositoryRoot = myRepository.getRepositoryRoot(true); locks = myRepository.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) { throw e; } } finally { myRepository.closeSession(); } if (locks != null) { for (int i = 0; i < locks.length; i++) { SVNLock lock = locks[i]; myLocks.put(lock.getPath(), lock); } } myEditor.setRepositoryInfo(myRepositoryRoot, myLocks); myReporter.finishReport(); }
public void finishReport() throws SVNException { // collect locks SVNLock[] locks = null; try { myRepositoryRoot = myRepository.getRepositoryRoot(true); locks = myRepository.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) { throw e; } } finally { myRepository.closeSession(); } if (locks != null) { for (int i = 0; i < locks.length; i++) { SVNLock lock = locks[i]; myLocks.put(lock.getPath(), lock); } } myEditor.setRepositoryInfo(myRepositoryRoot, myLocks); myReporter.finishReport(); }
public SVNLock[] getLocks() throws SVNException { if (getResourceURI().getPath() == null) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "get-locks-report run on resource which doesn't represent a path within a repository."), SVNLogType.NETWORK); } return getRepository().getLocks(getResourceURI().getPath()); }
SVNLock[] locks = repository.getLocks("/"); for (int i = 0; locks != null && i < locks.length; i++) { SVNLock lock = locks[i];
SVNLock[] locks = repository.getLocks("/"); for (int i = 0; locks != null && i < locks.length; i++) { SVNLock lock = locks[i];
SVNLock[] locks = new SVNLock[0]; try { locks = repos.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) {
public void finishReport() throws SVNException { // collect locks SVNLock[] locks = null; SVNURL oldLocation = myRepository.getLocation(); try { myRepositoryRoot = myRepository.getRepositoryRoot(true); myRepository.setLocation(myCommonAncestorLocation, false); locks = myRepository.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) { throw e; } } finally { myRepository.setLocation(oldLocation, false); myRepository.closeSession(); } if (locks != null) { for (int i = 0; i < locks.length; i++) { SVNLock lock = locks[i]; myLocks.put(lock.getPath(), lock); } } myEditor.setRepositoryInfo(myRepositoryRoot, myLocks); myReporter.finishReport(); }
public void finishReport() throws SVNException { // collect locks SVNLock[] locks = null; SVNURL oldLocation = this.repository.getLocation(); try { repositoryRoot = this.repository.getRepositoryRoot(true); this.repository.setLocation(repositoryLocation, false); locks = this.repository.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) { throw e; } } finally { this.repository.setLocation(oldLocation, false); this.repository.closeSession(); } if (locks != null) { for (int i = 0; i < locks.length; i++) { SVNLock lock = locks[i]; this.locks.put(lock.getPath(), lock); } } this.editor.setRepositoryInfo(this.repositoryRoot, this.locks); this.reporter.finishReport(); }
if (pegRevision == SVNRevision.HEAD && rootEntry.getKind() == SVNNodeKind.DIR) { try { locks = repos.getLocks(""); } catch (SVNException e) {
@Override public void close() throws Exception { final SVNRepository repo = openSvnRepository(url); long revision = repo.getLatestRevision(); try { final SVNLock[] locks = repo.getLocks(suffix); if (locks.length > 0) { final SVNURL root = repo.getRepositoryRoot(true); final Map<String, String> locksMap = new HashMap<>(); for (SVNLock lock : locks) { final String relativePath = SVNURLUtil.getRelativeURL(url, root.appendPath(lock.getPath(), false), false); locksMap.put(relativePath, lock.getID()); } repo.unlock(locksMap, true, null); } final ISVNEditor editor = repo.getCommitEditor("Remove subdir for test", null, false, null); editor.openRoot(-1); editor.deleteEntry(suffix, revision); editor.closeEdit(); } finally { repo.closeSession(); } }
if (pegRevision == SVNRevision.HEAD) { try { locks = repos.getLocks(""); } catch (SVNException svne) { SVNErrorCode code = svne.getErrorMessage().getErrorCode(); if (pegRevision == SVNRevision.HEAD) { try { locks = repos.getLocks(""); } catch (SVNException svne) { SVNErrorCode code = svne.getErrorMessage().getErrorCode();
if (pegRevision == SVNRevision.HEAD) { try { locks = repos.getLocks(""); } catch (SVNException svne) { SVNErrorCode code = svne.getErrorMessage().getErrorCode(); if (pegRevision == SVNRevision.HEAD) { try { locks = repos.getLocks(""); } catch (SVNException svne) { SVNErrorCode code = svne.getErrorMessage().getErrorCode();
SVNLock[] locks = new SVNLock[0]; try { locks = repos.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) {
SVNLock[] locks = new SVNLock[0]; try { locks = repos.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) {
SVNLock[] locks = new SVNLock[0]; try { locks = repos.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) {
SVNLock[] locks = new SVNLock[0]; try { locks = repos.getLocks(""); } catch (SVNException e) { if (!(e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED)) {
if (pegRevision == SVNRevision.HEAD) { try { locks = repository.getLocks(""); } catch (SVNException svne) { SVNErrorCode code = svne.getErrorMessage().getErrorCode(); if (pegRevision == SVNRevision.HEAD) { try { locks = repository.getLocks(""); } catch (SVNException svne) { SVNErrorCode code = svne.getErrorMessage().getErrorCode();