Gukkey
Gukkey

Reputation: 69

org.tmatesoft.svn.core.SVNException: svn: E155007: None of the targets are working copies while calling doUpdate() method

So I am trying to update my repository before committing my files using SVN Kit. So I update my repository svnUpdateClient.doUpdate(file, SVNRevision.HEAD, SVNDepth.INFINITY, false, false); . But when the doUpdate() method gets called I get the following error. org.tmatesoft.svn.core.SVNException: svn: E155007: None of the targets are working copies. What should I do to not get this exception?

Here is minimal reproducible example.

//Updates the repository
SVNUpdateClient svnUpdateClient = clientManager.getUpdateClient();
svnUpdateClient.doUpdate(files, SVNRevision.HEAD, SVNDepth.INFINITY, false, false);

//adds the non working copy to the repository
SVNWCClient wcClient = clientManager.getWCClient();
wcClient.doAdd(file, false, false, false, SVNDepth.INFINITY, false, false);

//commits the added/modified copy to the repository
SVNCommitClient commitClient = clientManager.getCommitClient();
commitClient.doCommit(files, false, commitMessage, null, null, false, false, SVNDepth.INFINITY);

Upvotes: 0

Views: 420

Answers (0)

Related Questions