Have you tried following the instructions in the SVNKit Wiki? See Committing To A Repository.
The following code adds the file nodeC/itemC2
, adds the text and then changes some properties on it:
//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( "nodeC/itemC2" , null , -1 );
baseChecksum = ...;
editor.applyTextDelta( "nodeC/itemC2" , baseChecksum );
baseData = ...;
workingData = ...;
checksum = deltaGenerator.sendDelta( "nodeC/itemC2" , baseData , 0 , workingData , editor , true );
editor.closeFile( "nodeC/itemC2" , checksum );
editor.changeFileProperty( "nodeC/itemC2" , "propName1" , "propValue1" );
editor.changeFileProperty( "nodeC/itemC2" , "propName2" , "propValue2" );