Hello,
I'd suggest you to checkout target directory first:
SVNURL url = SVNURL.parseURIEncoded("http://host/svn/repos/project/trunk/dir");
File dir = new File("/home/user/dir");
clientManager.getUpdateClient().
doCheckout(url, dir, SVNRevision.HEAD, SVNRevision.HEAD,
SVNDepth.INFINITY, false);
then, modify files you need to modify, create new directories and
files in local directory.
Every file or directory have to be to scheduled for addition before committing:
clientManager.getWCClient().
doAdd(dir, true, false, false, SVNDepth.INFINITY, false, false, false)
Above call will schedule files for addition recursively.
Then do a commit:
clientManager.getCommitClient().
doCommit(new File[] {dir}, false, "modification", null, null,
false, false, SVNDepth.INFINITY);
Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!
On 13 December 2011 23:53, Tabb <[email protected]> wrote:
>
> I want to check in all contents of a folder (subfolder and files)
> recursively.
> I would want to add new folders if they dont exist in repositories or commit
> them if a change is made on local directory.
> I tried doimport, but it just creates a folder/file if it doesnt exist. I
> want to be able to commit them if they exist in repository.
> Could someone give me a smililar example or an idea how can I achieve this
>
> Thanks
> --
> View this message in context:
> http://old.nabble.com/SVN-check-in-tp32971380p32971380.html
> Sent from the SVNKit - Users mailing list archive at Nabble.com.
>
>