I am using svnkit in java for doing anykind of svn related stuff programatically. I want to commit file only when it is changed. I am using this code snippet:
SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
String checksum = deltaGenerator.sendDelta(filePath, new ByteArrayInputStream(oldData), 0, new ByteArrayInputStream(newData), editor, true);
This code is creating new version of the file whenever anyone tries to commit anything. I want to avoid this when the content of the remote file and local file is same. Is there any way using svnkit library? Thanks,
Amandeep