public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCurrentFileBaton = makeFileBaton(myCurrentDirBaton, path); if (myCurrentFileBaton.myIsAmbientlyExcluded) { return; } myDelegate.addFile(path, copyFromPath, copyFromRevision); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCurrentFileBaton = makeFileBaton(myCurrentDirBaton, path); if (myCurrentFileBaton.myIsAmbientlyExcluded) { return; } myDelegate.addFile(path, copyFromPath, copyFromRevision); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCurrentFileBaton = makeFileBaton(myCurrentDirBaton, path); if (myCurrentFileBaton.myIsAmbientlyExcluded) { return; } myDelegate.addFile(path, copyFromPath, copyFromRevision); }
SVNRepository repository = SVNRepositoryFactory.create( SVNURL.parseURIDecoded( url ) ); ISVNEditor editor = repository.getCommitEditor( logMessage , null /*locks*/ , true /*keepLocks*/ , null /*mediator*/ ); //the second and the third parameters are the path and revision respectively //of the item's ancestor if the item is being added with history editor.addFile( "your/path/project/README.txt" , null , -1 );
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCurrentFileBaton = makeFileBaton(myCurrentDirBaton, path); if (myCurrentFileBaton.myIsAmbientlyExcluded) { return; } myDelegate.addFile(path, copyFromPath, copyFromRevision); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { getWrappedEditor().addFile(path, copyFromPath, copyFromRevision); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "add file " + path); myDelegate.addFile(path, copyFromPath, copyFromRevision); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "add file " + path); myDelegate.addFile(path, copyFromPath, copyFromRevision); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "add file " + path); myDelegate.addFile(path, copyFromPath, copyFromRevision); }
@Override public void addFile(@NotNull String path, @Nullable String copyFromPath, long copyFromRevision) throws SVNException { if (editor != null) editor.addFile(path, copyFromPath, copyFromRevision); allowDelete = false; }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCancel.checkCancelled(); myLog.info("add file " + path); myDelegate.addFile(path, copyFromPath, copyFromRevision); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { NodeBaton childNodeBaton = null; if (myCurrentNodeBaton.canEdit(SVNNodeKind.FILE)) { childNodeBaton = new NodeBaton(false, myCurrentNodeBaton.myDirDepth, myCurrentNodeBaton); myDelegate.addFile(path, copyFromPath, copyFromRevision); } else { childNodeBaton = new NodeBaton(true, myCurrentNodeBaton.myDirDepth, myCurrentNodeBaton); } myCurrentNodeBaton = childNodeBaton; }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { NodeBaton childNodeBaton = null; if (myCurrentNodeBaton.canEdit(SVNNodeKind.FILE)) { childNodeBaton = new NodeBaton(false, myCurrentNodeBaton.myDirDepth, myCurrentNodeBaton); myDelegate.addFile(path, copyFromPath, copyFromRevision); } else { childNodeBaton = new NodeBaton(true, myCurrentNodeBaton.myDirDepth, myCurrentNodeBaton); } myCurrentNodeBaton = childNodeBaton; }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { NodeBaton childNodeBaton = null; if (myCurrentNodeBaton.canEdit(SVNNodeKind.FILE)) { childNodeBaton = new NodeBaton(false, myCurrentNodeBaton.myDirDepth, myCurrentNodeBaton); myDelegate.addFile(path, copyFromPath, copyFromRevision); } else { childNodeBaton = new NodeBaton(true, myCurrentNodeBaton.myDirDepth, myCurrentNodeBaton); } myCurrentNodeBaton = childNodeBaton; }
SVNRepository repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(svnUrl)); SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator(); ISVNEditor editor = repository.getCommitEditor("This is a log message.", new CommitMediator()); editor.openRoot(-1); editor.addFile("testThisTextCommit1.txt", null, -1); editor.applyTextDelta(svnUrl, null); InputStream is = SVNFileUtil.openFileForReading(file); String chksm = deltaGenerator.sendDelta(svnUrl, is, editor, true); is.close(); editor.textDeltaEnd("testThisTextCommit1.txt"); editor.closeFile("testThisTextCommit1.txt", chksm); editor.closeEdit();
private static void addFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException { if (tgtKind == SVNNodeKind.DIR) { editor.addDir(editPath, null, -1); deltifyDirs(fsfs, editor, srcRoot, tgtRoot, null, tgtPath, editPath); editor.closeDir(); } else { editor.addFile(editPath, null, -1); deltifyFiles(fsfs, editor, srcRoot, tgtRoot, null, tgtPath, editPath); FSRevisionNode tgtNode = tgtRoot.getRevisionNode(tgtPath); editor.closeFile(editPath, tgtNode.getFileMD5Checksum()); } }
private void addFileOrDir(FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException { if (tgtKind == SVNNodeKind.DIR) { myEditor.addDir(editPath, null, -1); deltifyDirs(srcRoot, tgtRoot, null, tgtPath, editPath); myEditor.closeDir(); } else { myEditor.addFile(editPath, null, -1); deltifyFiles(srcRoot, tgtRoot, null, tgtPath, editPath); FSRevisionNode tgtNode = tgtRoot.getRevisionNode(tgtPath); myEditor.closeFile(editPath, tgtNode.getFileMD5Checksum()); } }
private static void addFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException { if (tgtKind == SVNNodeKind.DIR) { editor.addDir(editPath, null, -1); deltifyDirs(fsfs, editor, srcRoot, tgtRoot, null, tgtPath, editPath); editor.closeDir(); } else { editor.addFile(editPath, null, -1); deltifyFiles(fsfs, editor, srcRoot, tgtRoot, null, tgtPath, editPath); FSRevisionNode tgtNode = tgtRoot.getRevisionNode(tgtPath); editor.closeFile(editPath, tgtNode.getFileMD5Checksum()); } }
private void addFileOrDir(FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException { if (tgtKind == SVNNodeKind.DIR) { myEditor.addDir(editPath, null, -1); deltifyDirs(srcRoot, tgtRoot, null, tgtPath, editPath); myEditor.closeDir(); } else { myEditor.addFile(editPath, null, -1); deltifyFiles(srcRoot, tgtRoot, null, tgtPath, editPath); FSRevisionNode tgtNode = tgtRoot.getRevisionNode(tgtPath); myEditor.closeFile(editPath, tgtNode.getFileMD5Checksum()); } }
private void addFileOrDir(FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException { if (tgtKind == SVNNodeKind.DIR) { myEditor.addDir(editPath, null, -1); deltifyDirs(srcRoot, tgtRoot, null, tgtPath, editPath); myEditor.closeDir(); } else { myEditor.addFile(editPath, null, -1); deltifyFiles(srcRoot, tgtRoot, null, tgtPath, editPath); FSRevisionNode tgtNode = tgtRoot.getRevisionNode(tgtPath); myEditor.closeFile(editPath, tgtNode.getFileMD5Checksum()); } }