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

RE: how to completely replace the trunk of a repo with one of its branches?

From: Fouts Christopher (QNA RTP PT PREV) <Chris.Fouts_at_qimonda.com>
Date: Tue, 22 Jan 2008 16:46:32 +0100

>>-----Original Message-----
>>
>>On Dec 20, 2007, at 17:33, Srilakshmanan, Lakshman wrote:
>>
>>> I am sure you would have thought of this, but the easiest
>way and to
>>> keeping with the concept of trunk I would do the following.
>>>
>>> svn co trunk trunk-wc
>>> svn del everything under trunk-wc
>>> svn commit trunk-wc
>>>
>>> svn co branch branch-wc
>>> svn switch branch-wc to trunk
>>> svn commit
>>>
>>> This should make your branch identical to trunk
>>
>>Uh.... I really don't think so. I think "switch" does not do what you
>>think it does.
>>
>>What Reuben could do, though, is:
>>
>>svn rm url://to/repo/trunk -m "removing old trunk"
>>svn cp url://to/repo/branches/somebranch url://to/repo/trunk -m
>>"creating new trunk as copy of somebranch"
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
>>For additional commands, e-mail: users-help_at_subversion.tigris.org
>>
>
>Ryan, et al, I'm about to do this. How will these affect
>existing branches that have to-from tags with the trunk before
>the rm/cp trunk procedure?

I don't know if my response went through yesterday.
Here's what I mean.

- I create 2 branches off trunk branchA and branchB
- I create merge tags for branchA/trunk merges, called
  trunk-to-branchA and branchA-to-trunk for example
- I develop on branchA and branchB
- I svn rm //.../trunk
- I svn cp //.../branchB //.../trunk

Can I still then svn merge //.../trunk-to-branchA //.../trunk
to merge trunk onto my branchA for example? If I understand
SVN correctly, this should be ok, but just wanted the experts'
opinions.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-22 16:46:56 CET

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