Ich entwickle ein Eclipse-Plugin, das Zweig erstellt. Ich benutze Subclipse, aber das funktioniert nicht. Fehlermeldung: svn: E195000: Ein Pfad unter Versionskontrolle ist für diesen Vorgang benötigtSo erstellen/kopieren Sie Zweig mit Sublispse
Es per Kommandozeile funktioniert:
svn cp svn: // host/myrepo/trunk svn: // host/myrepo/branches/Abrach -m "Bitte, kopieren"
Aber in meinem Eclpse Plugin, kann ich nicht: (
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);
}