[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: Lalitha Prasad <lalith.prasad_at_scubetech.in>
Date: Fri, 13 Nov 2009 16:47:52 +0530

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>wrote:

> 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 />
>

-- 
Thanks & Regards,
V. Lalitha Prasad,
Software Developer
Scube IT Solutions India Pvt. Ltd
www.scubian.com
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=2417511
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-13 12:18:43 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.