public DAVCommitEditor(DAVRepository repository, DAVConnection connection, String message, ISVNWorkspaceMediator mediator, Runnable closeCallback) { myConnection = connection; myLogMessage = message; myLocation = repository.getLocation(); myRepository = repository; myCloseCallback = closeCallback; myCommitMediator = mediator; myDirsStack = new Stack(); myPathsMap = new HashMap(); myFilesMap = new HashMap(); }
public void update(long revision, String target, SVNDepth depth, boolean sendCopyFromArgs, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { runReport(getLocation(), revision, target, null, depth, false, false, true, sendCopyFromArgs, true, false, false, reporter, editor); }
public void update(long revision, String target, SVNDepth depth, boolean sendCopyFromArgs, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { runReport(getLocation(), revision, target, null, depth, false, false, true, sendCopyFromArgs, true, false, false, reporter, editor); }
public void update(long revision, String target, SVNDepth depth, boolean sendCopyFromArgs, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { runReport(getLocation(), revision, target, null, depth, false, false, true, sendCopyFromArgs, true, false, false, null, reporter, editor); }
public void status(long revision, String target, SVNDepth depth, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { runReport(getLocation(), revision, target, null, depth, false, false, false, false, true, false, false, null, reporter, editor); }
public void status(long revision, String target, SVNDepth depth, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { runReport(getLocation(), revision, target, null, depth, false, false, false, false, true, false, false, reporter, editor); }
public void fetchRepositoryRoot(DAVRepository repository) throws SVNException { if (!repository.hasRepositoryRoot()) { String rootPath = repository.getLocation().getURIEncodedPath(); DAVBaselineInfo info = DAVUtil.getBaselineInfo(this, repository, rootPath, -1, false, false, null); // remove relative part from the path rootPath = rootPath.substring(0, rootPath.length() - info.baselinePath.length()); SVNURL location = repository.getLocation(); SVNURL url = location.setPath(rootPath, true); repository.setRepositoryRoot(url); } }
public void fetchRepositoryRoot(DAVRepository repository) throws SVNException { if (!repository.hasRepositoryRoot()) { String rootPath = repository.getLocation().getURIEncodedPath(); DAVBaselineInfo info = DAVUtil.getBaselineInfo(this, repository, rootPath, -1, false, false, null); // remove relative part from the path rootPath = rootPath.substring(0, rootPath.length() - info.baselinePath.length()); SVNURL location = repository.getLocation(); SVNURL url = location.setPath(rootPath, true); repository.setRepositoryRoot(url); } }
public DAVCommitEditor(DAVRepository repository, DAVConnection connection, SVNProperties revProps, ISVNWorkspaceMediator mediator, Runnable closeCallback) { myConnection = connection; myLocation = repository.getLocation(); myRepository = repository; myCloseCallback = closeCallback; myCommitMediator = mediator; myDirsStack = new Stack(); myPathsMap = new SVNHashMap(); myFilesMap = new SVNHashMap(); myRevProps = revProps != null ? revProps : new SVNProperties(); myDeletedPaths = new HashSet<String>(); }
public DAVCommitEditor(DAVRepository repository, DAVConnection connection, SVNProperties revProps, ISVNWorkspaceMediator mediator, Runnable closeCallback) { myConnection = connection; myLocation = repository.getLocation(); myRepository = repository; myCloseCallback = closeCallback; myCommitMediator = mediator; myDirsStack = new Stack(); myPathsMap = new SVNHashMap(); myFilesMap = new SVNHashMap(); myRevProps = revProps != null ? revProps : new SVNProperties(); }
private String getReportTarget(DAVConnection connection) throws SVNException { if (isHttpV2Enabled()) { return connection.getMeResource(); } else { String bcPath = getLocation().getURIEncodedPath(); return DAVUtil.getVCCPath(connection, this, bcPath); } }
public void update(SVNURL url, long revision, String target, SVNDepth depth, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { if (url == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "URL could not be NULL"); SVNErrorManager.error(err, SVNLogType.NETWORK); } runReport(getLocation(), revision, target, url.toString(), depth, true, false, true, false, true, true, false, null, reporter, editor); }
public void update(SVNURL url, long revision, String target, SVNDepth depth, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { if (url == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "URL could not be NULL"); SVNErrorManager.error(err, SVNLogType.NETWORK); } runReport(getLocation(), revision, target, url.toString(), depth, true, false, true, false, true, true, false, reporter, editor); }
public void update(SVNURL url, long revision, String target, SVNDepth depth, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { if (url == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "URL could not be NULL"); SVNErrorManager.error(err, SVNLogType.NETWORK); } runReport(getLocation(), revision, target, url.toString(), depth, true, false, true, false, true, true, false, reporter, editor); }
public long getLatestRevision() throws SVNException { try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVBaselineInfo info = DAVUtil.getBaselineInfo(myConnection, this, path, -1, false, true, null); return info.revision; } finally { closeConnection(); } }
public void fetchRepositoryUUID(DAVRepository repository) throws SVNException { if (!repository.hasRepositoryUUID()) { DAVUtil.findStartingProperties(this, repository, repository.getLocation().getURIEncodedPath()); if (!repository.hasRepositoryUUID()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NO_REPOS_UUID, "Please upgrade to server 0.19 or later"); SVNErrorManager.error(err, SVNLogType.NETWORK); } } }
public long getLatestRevision() throws SVNException { try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); DAVBaselineInfo info = DAVUtil.getBaselineInfo(connection, this, path, -1, false, true, null); return info.revision; } finally { closeConnection(); } }
public long getLatestRevision() throws SVNException { try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); DAVBaselineInfo info = DAVUtil.getBaselineInfo(connection, this, path, -1, false, true, null); return info.revision; } finally { closeConnection(); } }
public void fetchRepositoryUUID(DAVRepository repository) throws SVNException { if (!repository.hasRepositoryUUID()) { DAVUtil.findStartingProperties(this, repository, repository.getLocation().getURIEncodedPath()); if (!repository.hasRepositoryUUID()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NO_REPOS_UUID, "Please upgrade to server 0.19 or later"); SVNErrorManager.error(err); } } }
public void fetchRepositoryUUID(DAVRepository repository) throws SVNException { if (!repository.hasRepositoryUUID()) { DAVUtil.findStartingProperties(this, repository, repository.getLocation().getURIEncodedPath()); if (!repository.hasRepositoryUUID()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NO_REPOS_UUID, "Please upgrade to server 0.19 or later"); SVNErrorManager.error(err, SVNLogType.NETWORK); } } }