【发布时间】:2017-05-09 21:19:31
【问题描述】:
我正在开发一个创建分支的 Eclipse 插件。我正在使用 Subclipse,但这不起作用。错误信息:svn: E195000: 此操作需要版本控制下的路径
通过命令行运行:
svn cp svn://host/myRepo/trunk svn://host/myRepo/branches/aBrach -m "请复制"
但在我的 Eclpse 插件中,我不能:(
ISVNRepositoryLocation location = SVNProviderPlugin.getPlugin().getRepositories().getRepository("svn://host/myRepo");
SVNUrl origin = location.getUrl().appendPath("trunk");
SVNUrl branch = location.getUrl().appendPath("branches").appendPath("aBranch");
ISVNClientAdapter svnClient = null;
try{
svnClient = location.getSVNClient();
svnClient.copy(origin, branch, "Please, copy", SVNRevision.BASE, true);
}catch(Exception e){
location.returnSVNClient(svnClient);
}
【问题讨论】:
标签: svn eclipse-plugin subclipse