this.oldContent = oldContent;
this.newContent = newContent;
}
public void applyAction(Object context) throws SVNException {
ISVNEditor editor = ( ISVNEditor ) context;
openDirectories( editor,
path );
editor.openFile( path + "/" + file,
-1 );
editor.applyTextDelta( path + "/" + file,
null );
SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
String checksum = deltaGenerator.sendDelta( path + "/" + file,
new ByteArrayInputStream( this.oldContent ),
0,
new ByteArrayInputStream( this.newContent ),
editor,
true );
editor.closeFile( path + "/" + file,
checksum );
closeDirectories( editor,
path );
}