public void openFile(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton)myDirsStack.peek(); String fileToken = "c" + myNextToken++; myConnection.write("(w(sss(n)))", new Object[] { "open-file", path, parentBaton.getToken(), fileToken, getRevisionObject(revision) }); if(myFilesToTokens == null){ myFilesToTokens = new HashMap(); } myFilesToTokens.put(path, fileToken); }
public ISVNEditor getCommitEditor(String logMessage, Map locks, boolean keepLocks, final ISVNWorkspaceMediator mediator) throws SVNException { try { openConnection(); if (locks != null) { write("(w(s(*l)w))", new Object[]{"commit", logMessage, locks, Boolean.valueOf(keepLocks)}); } else { write("(w(s))", new Object[]{"commit", logMessage}); } authenticate(); read("", null, false); return new SVNCommitEditor(this, myConnection, new SVNCommitEditor.ISVNCommitCallback() { public void run(SVNException error) { if (error != null) { closeSession(); } closeConnection(); } }); } catch (SVNException e) { closeSession(); closeConnection(); throw e; } }
public ISVNEditor getCommitEditor(String logMessage, Map locks, boolean keepLocks, final ISVNWorkspaceMediator mediator) throws SVNException { try { openConnection(); if (locks != null) { write("(w(s(*l)w))", new Object[]{"commit", logMessage, locks, Boolean.valueOf(keepLocks)}); } else { write("(w(s))", new Object[]{"commit", logMessage}); } authenticate(); read("", null, false); return new SVNCommitEditor(this, myConnection, new SVNCommitEditor.ISVNCommitCallback() { public void run(SVNException error) { if (error != null) { closeSession(); } closeConnection(); } }); } catch (SVNException e) { closeSession(); closeConnection(); throw e; } }
public void deleteEntry(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); myConnection.write("(w(s(n)s))", new Object[]{"delete-entry", path, getRevisionObject(revision), parentBaton.getToken()}); }
return new SVNCommitEditor(this, myConnection, new SVNCommitEditor.ISVNCommitCallback() { public void run(SVNException error) {
public void deleteEntry(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); myConnection.write("(w(s(n)s))", new Object[]{"delete-entry", path, getRevisionObject(revision), parentBaton.getToken()}); }
protected ISVNEditor getCommitEditorInternal(Map locks, boolean keepLocks, SVNProperties revProps, ISVNWorkspaceMediator mediator) throws SVNException { try { openConnection(); String logMessage = revProps.getStringValue(SVNRevisionProperty.LOG); if (revProps.size() > 1 && !myConnection.isCommitRevprops()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_IMPLEMENTED, "Server doesn't support setting arbitrary revision properties during commit"); SVNErrorManager.error(err, SVNLogType.NETWORK); } write("(w(s(*l)w(*l)))", new Object[]{"commit", logMessage, locks, Boolean.valueOf(keepLocks), revProps}); authenticate(); read("", null, false); return new SVNCommitEditor(this, myConnection, new SVNCommitEditor.ISVNCommitCallback() { public void run(SVNException error) { if (error != null) { closeSession(); } closeConnection(); } }); } catch (SVNException e) { closeConnection(); closeSession(); throw e; } }
public void deleteEntry(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); myConnection.write("(w(s(n)s))", new Object[]{"delete-entry", path, getRevisionObject(revision), parentBaton.getToken()}); }
protected ISVNEditor getCommitEditorInternal(Map locks, boolean keepLocks, SVNProperties revProps, ISVNWorkspaceMediator mediator) throws SVNException { try { openConnection(); String logMessage = revProps.getStringValue(SVNRevisionProperty.LOG); if (revProps.size() > 1 && !myConnection.isCommitRevprops()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_IMPLEMENTED, "Server doesn't support setting arbitrary revision properties during commit"); SVNErrorManager.error(err, SVNLogType.NETWORK); } write("(w(s(*l)w(*l)))", new Object[]{"commit", logMessage, locks, Boolean.valueOf(keepLocks), revProps}); authenticate(); read("", null, false); return new SVNCommitEditor(this, myConnection, new SVNCommitEditor.ISVNCommitCallback() { public void run(SVNException error) { if (error != null) { closeSession(); } closeConnection(); } }); } catch (SVNException e) { closeConnection(); closeSession(); throw e; } }
public void deleteEntry(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton)myDirsStack.peek(); myConnection.write("(w(s(n)s))", new Object[] { "delete-entry", path, getRevisionObject(revision), parentBaton.getToken() }); }
return new SVNCommitEditor(this, myConnection, new SVNCommitEditor.ISVNCommitCallback() { public void run(SVNException error) {
public void openFile(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); String fileToken = "c" + myNextToken++; myConnection.write("(w(sss(n)))", new Object[]{"open-file", path, parentBaton.getToken(), fileToken, getRevisionObject(revision)}); if (myFilesToTokens == null) { myFilesToTokens = new SVNHashMap(); } myFilesToTokens.put(path, fileToken); }
return new SVNCommitEditor(this, myConnection, new SVNCommitEditor.ISVNCommitCallback() { public void run(SVNException error) { if (error != null) {
public void openFile(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); String fileToken = "c" + myNextToken++; myConnection.write("(w(sss(n)))", new Object[]{"open-file", path, parentBaton.getToken(), fileToken, getRevisionObject(revision)}); if (myFilesToTokens == null) { myFilesToTokens = new SVNHashMap(); } myFilesToTokens.put(path, fileToken); }
public void openFile(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); String fileToken = "c" + myNextToken++; myConnection.write("(w(sss(n)))", new Object[]{"open-file", path, parentBaton.getToken(), fileToken, getRevisionObject(revision)}); if (myFilesToTokens == null) { myFilesToTokens = new SVNHashMap(); } myFilesToTokens.put(path, fileToken); }
public void openRoot(long revision) throws SVNException { DirBaton rootBaton = new DirBaton(myNextToken++); myConnection.write("(w((n)s))", new Object[]{"open-root", getRevisionObject(revision), rootBaton.getToken()}); myDirsStack.push(rootBaton); }
public void openRoot(long revision) throws SVNException { DirBaton rootBaton = new DirBaton(myNextToken++); myConnection.write("(w((n)s))", new Object[]{"open-root", getRevisionObject(revision), rootBaton.getToken()}); myDirsStack.push(rootBaton); }
public void openDir(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); DirBaton dirBaton = new DirBaton(myNextToken++); myConnection.write("(w(sss(n)))", new Object[]{"open-dir", path, parentBaton.getToken(), dirBaton.getToken(), getRevisionObject(revision)}); myDirsStack.push(dirBaton); }
public void openRoot(long revision) throws SVNException { DirBaton rootBaton = new DirBaton(myNextToken++); myConnection.write("(w((n)s))", new Object[] { "open-root", getRevisionObject(revision), rootBaton.getToken() }); myDirsStack.push(rootBaton); }
public void openRoot(long revision) throws SVNException { DirBaton rootBaton = new DirBaton(myNextToken++); myConnection.write("(w((n)s))", new Object[]{"open-root", getRevisionObject(revision), rootBaton.getToken()}); myDirsStack.push(rootBaton); }