Я использую SVNKIT для фиксации изменений в SVN. он работает нормально, как ожидалось в java. проблема заключается в том, что комментарии не сохраняются в svn. я делаю что-то, как показано ниже:SVN KIT комментировать комментарии выпуск
String comment = "testing here";
ISVNEditor editor = repository.getCommitEditor(comment, null /*locks*/ , false /*keepLocks*/ , null /*mediator*/);
SVNCommitInfo commitInfo = modifyFile(editor, "", "filePath", contents, modifiedContents);
и modifyFile Митос как ниже
private static SVNCommitInfo modifyFile(ISVNEditor editor, String dirPath,
String filePath, byte[] oldData, byte[] newData) throws SVNException {
editor.openRoot(-1);
editor.openDir(dirPath, -1);
editor.openFile(filePath, -1);
editor.applyTextDelta(filePath, null);
SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
String checksum = deltaGenerator.sendDelta(filePath, new ByteArrayInputStream(oldData), 0, new ByteArrayInputStream(newData), editor, true);
editor.closeFile(filePath, checksum);
editor.closeDir();
editor.closeDir();
return editor.closeEdit();
}
я не смог найти ошибку, почему комментарии не сохраняются. maven для этого же -
<groupId>org.tmatesoft.svnkit</groupId>
<artifactId>svnkit</artifactId>
<version>1.8.11</version>