[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 21:06:14 +0530

Dear All,

Thank you for the support.

Initially, i have tried the copy command with the revision range (i.e. -r
1:898). But i got the error "Revision range is not allowed for copy". So, i
tried to create the branch using merge.

I have used the command,
*svn merge -r 1:898 trunk/ branches/branch1/*

The above command merged all the files to the empty branch folder for the
revision 898. Then i made a commit to add these files to the repository.

The above command fixed my need and all the revision history is maintained
too.

But i don't know whether it is a proper way of creating a branch or not and
whether it will cause any future problems.
Can any one tell me whether the way i have followed is correct or
not.........!

On Fri, Nov 13, 2009 at 8:24 PM, Bob Archer <Bob.Archer_at_amsi.com> wrote:

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

-- 
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=2417586
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-13 16:37:20 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.