[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: Mon, 21 Jan 2008 20:46:51 +0100

>-----Original Message-----
>From: Ryan Schmidt [mailto:subversion-2007b_at_ryandesign.com]
>Sent: Monday, January 21, 2008 2:36 PM
>To: Fouts Christopher (QNA RTP PT PREV)
>Cc: subversion-users
>Subject: Re: how to completely replace the trunk of a repo
>with one of its branches?
>
>On Jan 21, 2008, at 10:07, Fouts Christopher (QNA RTP PT PREV) wrote:
>
>>> 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"
>>
>> 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?
>
>It won't affect them at all? I don't really understand the question.
>In what way do you think tags might be affected?
>

Ok lemme explain...
- I branched from the current trunk, say branchA
- I branched (second one) from the current trunk, say branchB
- I created tags trunk-to-branchB from trunk,
  and branchB-to-trunk from branchB
- I delete current trunk
- I cp branchA (not branchB) to trunk

Can I still do svn merge //.../trunk-to-branchB //.../trunk?
If understand SVN correctly, the answer is YES, but I wanted
to make sure.

-chris

---------------------------------------------------------------------
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-21 20:47:11 CET

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

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