[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Multi-Project Branching Problems

From: Mark Phippard <markphip_at_gmail.com>
Date: Fri, 28 Nov 2008 13:19:24 -0500

On Fri, Nov 28, 2008 at 11:18 AM, Simon Goodall
<simon.goodall_at_eurobios.com> wrote:
> 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

I get the same results when using the command line. See this example:

$ export R=file:///Users/mphippard/repositories/branching
$ svn cp -m "Create branch" --parents
$R/trunk/Projects/folder_a/eclipse_project_1
$R/trunk/Other/folder_b/eclipse_project_2 $R/branches/branch2

Committed revision 6.
$ svn ls $R/branches/branch2
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
>
> 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.

Could you file an issue for these other things? I remember reporting
the issue with the string not showing the complete path. It might not
be fixable as I think SWT is truncating. The exception should be
fixable though. Please report both.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
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 19:19:30 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.