[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: Sat, 14 Nov 2009 12:10:17 +0530

Hi All,

With all your suggestion i am able to get our required folder(tree)
structure in the repository with the same revision history maintained.

Here is the repositories old tree structure
Project [913]
  /trunk [346] <--> workspace1
  /branches
    /branch1 [913] <--> workspace2

Here is the repositories new tree structure (after we made changes)
 Project
   /trunk [915] {branch of old tree is now trunk here}
   /branches
     /branch1 [917] {totally new branch copied up to head revision}
     /branch2 [918] {totally new branch copied up to 898 revision}

We have 2 workspaces, among them one refers to the trunk and another to
branch1 of old repository.

Now with our new changes, we want to relocate our

   - workspace1 to point to the new branch1
   - workspace2 to point to the new branch2
   - workspace3 to point to the trunk

We have tried using the *svn switch --relocate* command to make the required
location changes.
But we are getting an error "*svn: Relocate can only change the repository
part of an URL*"

How could we achieve this with out having checkouts of new workspaces.

Please anyone help me in getting the solution for above one.

Thanks in advance.

On Fri, Nov 13, 2009 at 9:36 PM, lalith prasad
<lalith.prasad_at_scubetech.in>wrote:

> Ok. I have removed the code which is created through the merge command and
> used copy command to create the required branch.
> Thanks all
>
> On Fri, Nov 13, 2009 at 9:15 PM, Bob Archer <Bob.Archer_at_amsi.com> wrote:
>
>> > Lalitha Prasad wrote:
>> > > 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.
>> >
>> > You don't use a range in a repository copy command, just the
>> > revision you want.
>> > Subversion already knows the history of the included files.
>>
>> Right... I gave him the exact (well he would have to use his paths)
>> command to run.
>>
>> BOb
>>
>>
>
>
> --
> 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
>

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