Hi, SVN/SVNKit commit only added and versioned files. You should add all files you want to commit to version control. In oder to do that you may walk througn the directory children calling getWCClient().doAdd (.....) on each or you can call
wcClient.doAdd(directory, true, true, false, SVNDepth.INFINITY, false, true); on your directory. SVNDepth.INFINITY means "recurse into all children" and force=true options tells SVNKit to ignore the fact that the directory is already under version control (with force=false and exception is thrown on attempt to add a directory that is already under version control). -- Dmitry Pavlenko, TMate Software, http://subgit.com/ - git-svn bridge > Hi everyone, > > I add files in my work copy, use getCommitClient().doCommit(.....) can't > commit the changes. > > To check a directory, we use SVNWCUtil.isVersionedDirectory(File dir), if > it is false, use getWCClient().doAdd (.....) to add it to svn, then > getCommitClient().doCommit(.....) > > but, when a dir is under version control, but there are files that is not > under version control in the dir, > > getCommitClient().doCommit(.....) can't commit that files to svn. > > What's the error? I don't know how to solve it. > > expect your response and really appreciate it! > > > Best regards > Lena Yang > > ________________________________ > This e-mail and its attachments may contain confidential and privileged > information from Ambow Education Group, which is intended only for the > person or entity whose address is listed above. Any use by persons other > than the intended recipient(s) is strictly prohibited. If you have > received it in error, please notify the sender by phone or email > immediately and delete all copy of this message.