[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: Bob Archer <bob.archer_at_amsi.com>
Date: Fri, 13 Nov 2009 09:54:22 -0500

Specify the revision in your copy command:

svn cp -r 898 $REPO/Path/To/Trunk_at_898 $REPO/Path/To/BranchWanted

BOb

From: Lalitha Prasad [mailto:lalith.prasad_at_scubetech.in]
Sent: Friday, November 13, 2009 6:18 AM
To: Daniel Becroft
Cc: users_at_subversion.tigris.org
Subject: Re: Give us instructions to create a new repository with the branch code of a old repository

Hi Daniel

Thank you very much for your guidelines. It worked fine.
Another small query:
We want to create a new branch(copy) from the trunk but not to the head revision.
Example: The head revision is 913 and the trunk is also at 913, We need to create a new branch from trunk but the branch should contain r1 to r898.
Is there a way to achieve this. Please help us to solve our issue.
On Fri, Nov 13, 2009 at 12:25 PM, Daniel Becroft <djcbecroft_at_gmail.com<mailto:djcbecroft_at_gmail.com>> wrote:
On Fri, Nov 13, 2009 at 2:08 PM, Lalitha Prasad
<lalith.prasad_at_scubetech.in<mailto: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 />

--
Thanks & Regards,
V. Lalitha Prasad,
Software Developer
Scube IT Solutions India Pvt. Ltd
www.scubian.com<http://www.scubian.com>
lalith.prasad_at_scubian.com<mailto:lalith.prasad_at_scubian.com>
(Cell) +91 9966282236
#4-1-319, 2nd Floor, Abids Road, Hyderabad - 01
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417574
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-13 15:55:21 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.