Вы пробовали следовать инструкциям в SVNKit Wiki? См. Обязательство по хранилищу .
Следующий код добавляет файл nodeC/itemC2
, добавляет текст и затем изменяет некоторые свойства:
//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" );