public void setPath(String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); myReporterContext.writePathInfoToReportFile(path, null, lockToken, revision, startEmpty, depth); }
public void setPath(String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); myReporterContext.writePathInfoToReportFile(path, null, lockToken, revision, startEmpty, depth); }
public void setPath(String path, String lockToken, long revision, boolean startEmpty) throws SVNException { assertValidRevision(revision); myReporterContext.writePathInfoToReportFile(path, null, lockToken, revision, startEmpty); }
public void setPath(String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); myReporterContext.writePathInfoToReportFile(path, null, lockToken, revision, startEmpty, depth); }
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 String getRevisionPropertyValue(long revision, String propertyName) throws SVNException { assertValidRevision(revision); if (propertyName == null) { return null; } try { openRepository(); return (String) myFSFS.getRevisionProperties(revision).get(propertyName); } finally { closeRepository(); } }
protected int getLocationsImpl(String path, long pegRevision, long[] revisions, ISVNLocationEntryHandler handler) throws SVNException { assertValidRevision(pegRevision); for (int i = 0; i < revisions.length; i++) { assertValidRevision(revisions[i]); } try { openRepository(); path = getRepositoryPath(path); FSLocationsFinder locationsFinder = getLocationsFinder(); return locationsFinder.traceNodeLocations(path, pegRevision, revisions, handler); } finally { closeRepository(); } }
protected int getLocationsImpl(String path, long pegRevision, long[] revisions, ISVNLocationEntryHandler handler) throws SVNException { assertValidRevision(pegRevision); for (int i = 0; i < revisions.length; i++) { assertValidRevision(revisions[i]); } try { openRepository(); path = getRepositoryPath(path); FSLocationsFinder locationsFinder = getLocationsFinder(); return locationsFinder.traceNodeLocations(path, pegRevision, revisions, handler); } finally { closeRepository(); } }
protected int getLocationsImpl(String path, long pegRevision, long[] revisions, ISVNLocationEntryHandler handler) throws SVNException { assertValidRevision(pegRevision); for (int i = 0; i < revisions.length; i++) { assertValidRevision(revisions[i]); } try { openRepository(); path = getRepositoryPath(path); FSLocationsFinder locationsFinder = getLocationsFinder(); return locationsFinder.traceNodeLocations(path, pegRevision, revisions, handler); } finally { closeRepository(); } }
public void linkPath(SVNURL url, String path, String lockToken, long revision, boolean startEmpty) throws SVNException { assertValidRevision(revision); SVNURL reposRootURL = getRepositoryRoot(false); if (url.toDecodedString().indexOf(reposRootURL.toDecodedString()) == -1) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "''{0}''\nis not the same repository as\n''{1}''", new Object[] { url, reposRootURL }); SVNErrorManager.error(err); } String reposLinkPath = url.toDecodedString().substring(reposRootURL.toDecodedString().length()); if ("".equals(reposLinkPath)) { reposLinkPath = "/"; } myReporterContext.writePathInfoToReportFile(path, reposLinkPath, lockToken, revision, startEmpty); }
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 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 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 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; }
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 void linkPath(SVNURL url, String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); if (depth == SVNDepth.EXCLUDE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Depth 'exclude' not supported for link"); SVNErrorManager.error(err, SVNLogType.FSFS); } SVNURL reposRootURL = getRepositoryRoot(false); if (url.toDecodedString().indexOf(reposRootURL.toDecodedString()) == -1) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "''{0}''\nis not the same repository as\n''{1}''", new Object[] { url, reposRootURL }); SVNErrorManager.error(err, SVNLogType.FSFS); } String reposLinkPath = url.toDecodedString().substring(reposRootURL.toDecodedString().length()); if ("".equals(reposLinkPath)) { reposLinkPath = "/"; } myReporterContext.writePathInfoToReportFile(path, reposLinkPath, lockToken, revision, startEmpty, depth); }
public void linkPath(SVNURL url, String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); if (depth == SVNDepth.EXCLUDE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Depth 'exclude' not supported for link"); SVNErrorManager.error(err, SVNLogType.FSFS); } SVNURL reposRootURL = getRepositoryRoot(false); if (url.toDecodedString().indexOf(reposRootURL.toDecodedString()) == -1) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "''{0}''\nis not the same repository as\n''{1}''", new Object[] { url, reposRootURL }); SVNErrorManager.error(err, SVNLogType.FSFS); } String reposLinkPath = url.toDecodedString().substring(reposRootURL.toDecodedString().length()); if ("".equals(reposLinkPath)) { reposLinkPath = "/"; } myReporterContext.writePathInfoToReportFile(path, reposLinkPath, lockToken, revision, startEmpty, depth); }
public void linkPath(SVNURL url, String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); if (depth == SVNDepth.EXCLUDE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Depth 'exclude' not supported for link"); SVNErrorManager.error(err, SVNLogType.FSFS); } SVNURL reposRootURL = getRepositoryRoot(false); if (url.toDecodedString().indexOf(reposRootURL.toDecodedString()) == -1) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "''{0}''\nis not the same repository as\n''{1}''", new Object[] { url, reposRootURL }); SVNErrorManager.error(err, SVNLogType.FSFS); } String reposLinkPath = url.toDecodedString().substring(reposRootURL.toDecodedString().length()); if ("".equals(reposLinkPath)) { reposLinkPath = "/"; } myReporterContext.writePathInfoToReportFile(path, reposLinkPath, lockToken, revision, startEmpty, depth); }
public void setRevisionPropertyValue(long revision, String propertyName, String propertyValue) throws SVNException { assertValidRevision(revision); try { openRepository(); if (!SVNProperty.isRegularProperty(propertyName)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Storage of non-regular property ''{0}'' is disallowed through the repository interface, and could indicate a bug in your client", propertyName); SVNErrorManager.error(err); } String userName = getUserName(); Map revProps = myFSFS.getRevisionProperties(revision); String oldValue = (String)revProps.get(propertyName); String action = null; if (propertyValue == null) { action = FSHooks.REVPROP_DELETE; } else if (oldValue == null) { action = FSHooks.REVPROP_ADD; } else { action = FSHooks.REVPROP_MODIFY; } FSHooks.runPreRevPropChangeHook(myReposRootDir, propertyName, propertyValue, userName, revision, action); myFSFS.setRevisionProperty(revision, propertyName, propertyValue); FSHooks.runPostRevPropChangeHook(myReposRootDir, propertyName, propertyValue, userName, revision, action); } finally { closeRepository(); } }