public void closeRepository() throws SVNException { if (!myIsRepositoryClosed) { myDelegate.closeRepository(); myIsRepositoryClosed = true; } } }
public void testConnection() throws SVNException { // try to open and close a repository try { openRepository(); } finally { closeRepository(); } }
public Map getRevisionProperties(long revision, Map properties) throws SVNException { assertValidRevision(revision); try { openRepository(); properties = properties == null ? new HashMap() : properties; properties.putAll(myFSFS.getRevisionProperties(revision)); } finally { closeRepository(); } return properties; }
public long getLatestRevision() throws SVNException { try { openRepository(); return myFSFS.getYoungestRevision(); } finally { closeRepository(); } }
public long getLatestRevision() throws SVNException { try { openRepository(); return myFSFS.getYoungestRevision(); } finally { closeRepository(); } }
public void update(long revision, String target, SVNDepth depth, boolean sendCopyFromArgs, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { try { openRepository(); makeReporterContext(revision, target, null, depth, false, true, sendCopyFromArgs, editor); reporter.report(this); } finally { closeRepository(); } }
public void diff(SVNURL url, long targetRevision, long revision, String target, boolean ignoreAncestry, SVNDepth depth, boolean getContents, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { try { openRepository(); makeReporterContext(targetRevision, target, url, depth, ignoreAncestry, getContents, false, editor); reporter.report(this); } finally { closeRepository(); } }
public void status(long revision, String target, SVNDepth depth, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { try { openRepository(); makeReporterContext(revision, target, null, depth, false, false, false, editor); reporter.report(this); } finally { closeRepository(); } }
public void diff(SVNURL url, long targetRevision, long revision, String target, boolean ignoreAncestry, boolean recursive, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { try { openRepository(); makeReporterContext(targetRevision, target, url, recursive, ignoreAncestry, true, editor); reporter.report(this); } finally { closeRepository(); } }
public SVNLock getLock(String path) throws SVNException { try { openRepository(); path = getRepositoryPath(path); SVNLock lock = myFSFS.getLockHelper(path, false); return lock; } finally { closeRepository(); } }
public long getDatedRevision(Date date) throws SVNException { if (date == null) { return getLatestRevision(); } try { openRepository(); return myFSFS.getDatedRevision(date); } finally { closeRepository(); } }
public long getDatedRevision(Date date) throws SVNException { if (date == null) { return getLatestRevision(); } try { openRepository(); return myFSFS.getDatedRevision(date); } finally { closeRepository(); } }
public SVNLock getLock(String path) throws SVNException { try { openRepository(); path = getRepositoryPath(path); SVNLock lock = myFSFS.getLockHelper(path, false); return lock; } finally { closeRepository(); } }
public void update(SVNURL url, long revision, String target, SVNDepth depth, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { try { openRepository(); makeReporterContext(revision, target, url, depth, true, true, false, editor); reporter.report(this); } finally { closeRepository(); } }
public SVNPropertyValue getRevisionPropertyValue(long revision, String propertyName) throws SVNException { assertValidRevision(revision); if (propertyName == null) { return null; } try { openRepository(); return myFSFS.getRevisionProperties(revision).getSVNPropertyValue(propertyName); } finally { closeRepository(); } }
public ISVNEditor getCommitEditor(String logMessage, Map locks, boolean keepLocks, ISVNWorkspaceMediator mediator) throws SVNException { try { openRepository(); } catch (SVNException svne) { closeRepository(); throw svne; } // fetch user name! String author = getUserName(); FSCommitEditor commitEditor = new FSCommitEditor(getRepositoryPath(""), logMessage, author, locks, keepLocks, null, myFSFS, this); return commitEditor; }
protected long getLocationSegmentsImpl(String path, long pegRevision, long startRevision, long endRevision, ISVNLocationSegmentHandler handler) throws SVNException { try { openRepository(); path = getRepositoryPath(path); FSLocationsFinder locationsFinder = getLocationsFinder(); return locationsFinder.getNodeLocationSegments(path, pegRevision, startRevision, endRevision, handler); } finally { closeRepository(); } }
public void replay(long lowRevision, long highRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException { try { openRepository(); FSRevisionRoot root = myFSFS.createRevisionRoot(highRevision); String basePath = getRepositoryPath(""); FSRepositoryUtil.replay(myFSFS, root, basePath, lowRevision, sendDeltas, editor); } finally { closeRepository(); } }
public SVNProperties getRevisionProperties(long revision, SVNProperties properties) throws SVNException { assertValidRevision(revision); try { openRepository(); properties = properties == null ? new SVNProperties() : properties; properties.putAll(myFSFS.getRevisionProperties(revision)); } finally { closeRepository(); } return properties; }
public SVNProperties getRevisionProperties(long revision, SVNProperties properties) throws SVNException { assertValidRevision(revision); try { openRepository(); properties = properties == null ? new SVNProperties() : properties; properties.putAll(myFSFS.getRevisionProperties(revision)); } finally { closeRepository(); } return properties; }