I've been trying to branch multiple projects and I have encountered a
few problems. With a repository layout such as;
trunk/
Projects/
folder_a/
eclipse_project_1
Other
folder_b
eclipse_project_2
I'm attempting to branch into the projects into the following form;
/branches/
branch_name/
Projects/
folder_a/
eclipse_project_1
Other/
folder_b/
eclipse_project_2
The branch/tag dialog selects the correct root (repo_root/trunk) which
is replaced by (repo_root/branches/branch_name) and the small table
showing the new paths appears to be correct with the above layout. (This
is obscured somewhat by the strings being replaced with ... and resizing
the dialog does not resize the table).
However when I commit the branch, the following structure is created;
/branches/
branch_name/
eclipse_project_1
eclipse_project_2
If I have selected "switch working copy to branch", it fails with a
message such as;
An internal error occurred during: "SVN Branch/Tag".
Attempted to beginRule: P/eclipse_project_1, does not match outer scope
rule: P/eclipse_project_2
the corresponding stacktrace;
java.lang.IllegalArgumentException: Attempted to beginRule:
P/eclipse_project_1, does not match outer scope rule: P/eclipse_project_2
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:64)
at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:122)
at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:232)
at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:58)
at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:230)
at
org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:117)
at
org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1747)
at
org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1473)
at
org.tigris.subversion.subclipse.core.commands.SwitchToUrlCommand.run(SwitchToUrlCommand.java:74)
at
org.tigris.subversion.subclipse.ui.operations.BranchTagOperation.execute(BranchTagOperation.java:87)
at
org.tigris.subversion.subclipse.ui.operations.RepositoryProviderOperation.execute(RepositoryProviderOperation.java:71)
at
org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOperation.java:89)
at
org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnableContext.java:144)
at
org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.runInWorkspace(JobRunnableContext.java:72)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I am assuming that this is related to the issue that the dialog shows
one branch layout whilst another layout is actually created.
I've tried using both SVNKit and JavaHL and I get the same behaviour in
both cases. Branching has been performed by selecting a group of
projects and using the right-click menu to Team -> Branch/Tag and the
HEAD revision has been selected.
Platform Details
OS: Win XP
Eclipse: 3.4.1
Subclipse: 1.4.6
SVNKit: 1.2.0.4949
JavaHL: 1.5.4
Protocol: svn+ssh
Simon Goodall
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-11-28 17:19:04 CET