IDEA-82197 svn: E200009: Wrong number of targets has been specified (0), at least 1 is required.

This commit is contained in:
irengrig
2012-03-19 19:18:45 +04:00
parent fdb6653456
commit 7759a25131
@@ -137,8 +137,10 @@ public class CopyAction extends BasicAction {
throw new VcsException("Invalid repository root path for " + baseUrl);
}
}
SVNCommitClient commitClient = activeVcs.createCommitClient();
commitClient.doMkDir(dirsToCreate.toArray(new SVNURL[dirsToCreate.size()]), comment);
if (! dirsToCreate.isEmpty()) {
SVNCommitClient commitClient = activeVcs.createCommitClient();
commitClient.doMkDir(dirsToCreate.toArray(new SVNURL[dirsToCreate.size()]), comment);
}
}
private static boolean dirExists(Project project, final SVNURL url, final SVNWCClient client) throws SVNException {