public void closeFile(String path, String textChecksum) throws SVNException { if (myCurrentFileBaton.myIsAmbientlyExcluded) { return; } myDelegate.closeFile(path, textChecksum); }
public void closeFile(String path, String textChecksum) throws SVNException { if (myCurrentFileBaton.myIsAmbientlyExcluded) { return; } myDelegate.closeFile(path, textChecksum); }
public void closeFile(String path, String textChecksum) throws SVNException { if (!myCurrentNodeBaton.myIsFiltered) { myDelegate.closeFile(path, textChecksum); } myCurrentNodeBaton = myCurrentNodeBaton.myParentBaton; }
public void closeFile(String path, String textChecksum) throws SVNException { if (myCurrentFileBaton.myIsAmbientlyExcluded) { return; } myDelegate.closeFile(path, textChecksum); }
public void closeFile(String path, String textChecksum) throws SVNException { if (myCurrentFileBaton.myIsAmbientlyExcluded) { return; } myDelegate.closeFile(path, textChecksum); }
public void closeFile(String path, String textChecksum) throws SVNException { if (!myCurrentNodeBaton.myIsFiltered) { myDelegate.closeFile(path, textChecksum); } myCurrentNodeBaton = myCurrentNodeBaton.myParentBaton; }
public void closeFile(String path, String textChecksum) throws SVNException { if (!myCurrentNodeBaton.myIsFiltered) { myDelegate.closeFile(path, textChecksum); } myCurrentNodeBaton = myCurrentNodeBaton.myParentBaton; }
public void closeFile(String path, String textChecksum) throws SVNException { EntryBaton baton = (EntryBaton) myPathsToFileBatons.get(path); if (baton.myTextAct != IGNORE || baton.myTextAct != IGNORE) { myCommitEditor.closeFile(path, textChecksum); } }
/** * Closes the current opened file. * * @param path * @param textChecksum * @throws SVNException */ public void closeFile(String path, String textChecksum) throws SVNException { EntryBaton baton = (EntryBaton) myPathsToFileBatons.get(path); if (baton.myTextAct != IGNORE || baton.myTextAct != IGNORE) { myCommitEditor.closeFile(path, textChecksum); } }
public void closeFile(String path, String textChecksum) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "close file " + path); myDelegate.closeFile(path, textChecksum); }
public void closeFile(String path, String textChecksum) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "close file " + path); myDelegate.closeFile(path, textChecksum); }
public void closeFile(String path, String textChecksum) throws SVNException { myCancel.checkCancelled(); myLog.info("close file " + path); myDelegate.closeFile(path, textChecksum); }
public void closeFile(String path, String textChecksum) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "close file " + path); myDelegate.closeFile(path, textChecksum); }
public static void sendDeltaAndClose(@NotNull ISVNEditor editor, @NotNull String filePath, @Nullable byte[] oldData, @Nullable byte[] newData) throws SVNException, IOException { try ( ByteArrayInputStream oldStream = new ByteArrayInputStream(oldData == null ? emptyBytes : oldData); ByteArrayInputStream newStream = new ByteArrayInputStream(newData == null ? emptyBytes : newData) ) { editor.applyTextDelta(filePath, null); SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator(); String checksum = deltaGenerator.sendDelta(filePath, oldStream, 0, newStream, editor, true); editor.closeFile(filePath, checksum); } }
SVNRepository repository = SVNRepositoryFactory.create(url); ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(user,password); repository.setAuthenticationManager(authManager); ISVNEditor editor = repository.getCommitEditor("comment" , null); editor.openRoot(-1); editor.openFile("/file1.txt", -1); editor.changeFileProperty("/file1.txt", "mypropertyname", SVNPropertyValue.create("myvalue")); editor.closeFile("/file1.txt",null); 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 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 replaceFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException { long baseRevision = srcRoot.getRevision(); if (tgtKind == SVNNodeKind.DIR) { editor.openDir(editPath, baseRevision); deltifyDirs(fsfs, editor, srcRoot, tgtRoot, srcPath, tgtPath, editPath); editor.closeDir(); } else { editor.openFile(editPath, baseRevision); deltifyFiles(fsfs, editor, srcRoot, tgtRoot, srcPath, tgtPath, editPath); FSRevisionNode tgtNode = tgtRoot.getRevisionNode(tgtPath); editor.closeFile(editPath, tgtNode.getFileMD5Checksum()); } }
private static void replaceFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException { long baseRevision = srcRoot.getRevision(); if (tgtKind == SVNNodeKind.DIR) { editor.openDir(editPath, baseRevision); deltifyDirs(fsfs, editor, srcRoot, tgtRoot, srcPath, tgtPath, editPath); editor.closeDir(); } else { editor.openFile(editPath, baseRevision); deltifyFiles(fsfs, editor, srcRoot, tgtRoot, srcPath, tgtPath, editPath); FSRevisionNode tgtNode = tgtRoot.getRevisionNode(tgtPath); editor.closeFile(editPath, tgtNode.getFileMD5Checksum()); } }