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

Re: Give us instructions to create a new repository with the branch code of a old repository

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Fri, 13 Nov 2009 16:55:09 +1000

On Fri, Nov 13, 2009 at 2:08 PM, Lalitha Prasad
<lalith.prasad_at_scubetech.in> wrote:
> Dear Sir
>
> We have repository which contains trunk and branch. The head revision is at
> 913
>
>
> Our Requirement:
> We just want to dump the trunk, then delete the trunk and to move all code
> from branch to the trunk then remove branch. Ultimately , we need to have
> our current branch code in the trunk. At the same time we just want the
> revision history to be loosed and there shouldn't be any increase/decrease
> in the Head revisions.
>
> Our Problem:
>
> Trunk is stopped at revision 346 but the branch has grown up 913 revision.
> We don't want to merge trunk with branch and vice versa due to some unstable
> features in the trunk.
> At the same time we want all the previous revision history to be maintained.

If you want this without an increase/decrease in the HEAD revision,
then all current working copys will be invalidated, and would need to
be re-checked out. This is because r913 of the new repository will not
be the same as r913 of the old repository.

You can do this in the current repository, without doing a dump/load
cycle, providing y don't mind an increase by 1 or 2 in the HEAD
revision, you could do:

svn delete %URL%/trunk
svn copy <branch> %URL%/trunk

Cheers,
Daniel B.

<snipped />

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417434

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-13 07:56:17 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.