I am committing the files to SVN using the API available in SVNKit, using the below code
ourClientManager.getWCClient().doAdd(subFile, false, false, true, false);
ourClientManager.getCommitClient().doCommit(path, false, comment, false, false);
When i commit a new directory, the file in it are automatically committed. (I have set recursive false.) Is there a way to stop that? I want to pass a different comment for the new directory committed and the file committed, so i want commit them separately. Please suggest if there is a way.
In svn commands, you'd do svn add --depth=empty mydirectory
With SVNKit, pass in the EMPTY value for the SVNDepth parameter, e.g.:
doAdd(mydirectory, false, false, false, SVNDepth.EMPTY)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With