[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: 2007-12-21 16:16:23 CET

>-----Original Message-----
>From: Ryan Schmidt [mailto:subversion-2007b@ryandesign.com]
>Sent: Friday, December 21, 2007 10:11 AM
>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 Dec 21, 2007, at 08:59, Fouts Christopher (QNA RTP PT PREV) wrote:
>
>>> 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"
>>
>> I'd have done this too. However, if Reuben changes his mind
>and wants
>> the old trunk back, the revision he removed, how can he get it back?
>
>svn rm url://to/repo/trunk -m "removing new trunk"
>svn cp url://to/repo/trunk_at_FOO url://to/repo/trunk -m
>"reinstating old trunk from rFOO"
>
>where FOO is a revision in which the old trunk still existed.
>

Is this same as...
svn cp -rFOO url://to/repo/trunk url://to/repo/trunk -m "reinstating old trunk from rFOO"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 21 16:16:58 2007

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.