You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bob Archer <bo...@amsi.com> on 2009/11/13 14:54:22 UTC
RE: Give us instructions to create a new repository with the branch
code of a old repository
Specify the revision in your copy command:
svn cp -r 898 $REPO/Path/To/Trunk@898 $REPO/Path/To/BranchWanted
BOb
From: Lalitha Prasad [mailto:lalith.prasad@scubetech.in]
Sent: Friday, November 13, 2009 6:18 AM
To: Daniel Becroft
Cc: users@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 <dj...@gmail.com>> wrote:
On Fri, Nov 13, 2009 at 2:08 PM, Lalitha Prasad
<la...@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@scubian.com<ma...@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@subversion.tigris.org].
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Lalitha Prasad <la...@scubetech.in>.
Hi Ryan
I found the solution given by you in the link
http://archives.devshed.com/forums/development-94/media-repositories-db-transactions-0-1-txn-permission-denied-1848760.html
This link helped me in solving the problem. Thank you
On Tue, Dec 1, 2009 at 3:11 PM, lalith prasad <la...@scubetech.in>wrote:
> Hi All
>
> Need another help from you...
>
> My repo1_new created successfully and everything is working fine. But when
> i am trying to commit any changes to it, i am getting an error with
> permissions
>
> *Error:*
> svn: Can't create directory
> '/usr/local/repos/repo1_new/db/transactions/0-1.txn': Permission denied
>
> I am a root user, but again i have checked the username and group using the
> "id" command, it displayed root as gid and uid.
>
> so i have executed the below commands from the repositories folder to give
> the permissions
>
> chown -R root:root repo1_new
> chmod g+w repo1_new -R
>
> The above commands executed successfully but no use, when i again tried to
> commit changes the same error displayed.
>
> I am not getting what the mistake i am doing.. plz help
>
> On Mon, Nov 30, 2009 at 1:19 PM, lalith prasad <lalith.prasad@scubetech.in
> > wrote:
>
>> Hi Ryan
>>
>> Thanks for your support.
>>
>>
>> - Initially we had repo1 and we have dumped repo1 to our local
>> machine( our svn is in VPS machine). Then due to some reasons our VPS server
>> got down for few days.
>> - Mean while we have loaded the dumped file in ou r local Visual SVN
>> server and made some commits to it.
>> - The revision at the time we have dumped the repo is 913
>> - The revision is increased to 926( in local SVN).
>> - Then, after VPS has been repaired and it is ready for use, we have
>> dumped the repo from local Visual svn server.
>> - Then tried to rename the present repo1 to repo1_old ( our plan is,
>> rename the repo1 to repo1_old and to create another repo with name repo1
>> then to load the dumped file to it) but it failed as svn don't have rename
>> command.
>> - So, we have created another repository repo1_new keeping the repo1
>> as it is and loaded the dumped file in it. The new repo has same revision
>> history and UUID
>>
>>
>> The interesting thing is, if we point our webdav location directly to the
>> new repo( as we did previously) then it is working. But if we modify the
>> webdav to point to the svn parent path, then the problem persists.
>>
>> I think, the 2 step solution which you have provided should work. We will
>> try it once and then let you know.
>>
>> I have never worked on SVN commands in such a deeper way, but with all
>> your help and suggestions i am able to succeed in every thing. Hope this
>> problem will also be solved as you have provided solution for that. Thanks
>> for your support.
>>
>>
>> On Sun, Nov 29, 2009 at 5:07 AM, Ryan Schmidt <
>> subversion-2009d@ryandesign.com> wrote:
>>
>>> On Nov 28, 2009, at 07:01, Lalitha Prasad wrote:
>>>
>>> > Previously we have only one repository "repo1" in our svn repository
>>> directory and we made our WebDav to point directly to the repository itself,
>>> i.e. /home/repos/repo1.
>>> >
>>> > With our new requirement, we have created 2 new repositories repo1_new
>>> and repo2. Now we have changed the svnpath of webdav to point to the parent
>>> directory.
>>> >
>>> > Up to this every thing worked fine.
>>> >
>>> > But when we tried to switch our working copy to the new repo_new(both
>>> repo1 and repo_new have same code but with different versions), then we are
>>> getting error.
>>> >
>>> > Our repo1_new is like a mirror to the repo1.
>>>
>>> How was repo1_new created from repo1? Do they have the same UUID? Do they
>>> have the same revision numbers?
>>>
>>>
>>> > Detailed information:
>>> > Previously, our workspace used to point to the url
>>> http://sample.com/svn/branches/branch1.
>>> > Now we need to switch to the url http://sample.com/svn/repo1_new/trunk
>>>
>>> You're trying to do two things at once. You need to do them separately.
>>> First you need to relocate the working copy so that portion of the URL that
>>> points to the root of the repository is updated:
>>>
>>> svn switch --relocate http://sample.com/svn
>>> http://sample.com/svn/repo1_new
>>>
>>> (the repository root used to be at /svn and now it is at /svn/repo1_new)
>>>
>>> Then you can switch the part after the repository URL, if desired. For
>>> example if you want to switch from branch1 to trunk, you do:
>>>
>>> svn switch http://sample.com/svn/repo1_new/trunk
>>>
>>> (the working copy has now been switched from wherever it was
>>> (branches/branch1) to trunk)
>>>
>>>
>>> > We have tried the command svn switch
>>> http://sample.com/svn/repo1_new/trunk from the workspace. This has
>>> thrown us error like this,
>>> > Error:
>>> > svn: 'http://sample.com/svn/branches/branch1'
>>> > is not the same repository as
>>> > 'http://sample.com/svn/repo1_new/trunk'
>>> >
>>> > How can solve this one and make my workspace to switch to the new url?
>>>
>>> If the above doesn't help, then it sounds like they are not the same
>>> repository. If they aren't, then you can't switch or relocate; you must
>>> check out new working copies.
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> V. Lalitha Prasad,
>> Software Developer
>> Scube IT Solutions India Pvt. Ltd
>> www.scubian.com
>> lalith.prasad@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@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@scubian.com
(Cell) +91 9966282236
#4-1-319, 2nd Floor, Abids Road, Hyderabad - 01
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2425827
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Lalitha Prasad <la...@scubetech.in>.
Hi All
Need another help from you...
My repo1_new created successfully and everything is working fine. But when i
am trying to commit any changes to it, i am getting an error with
permissions
*Error:*
svn: Can't create directory
'/usr/local/repos/repo1_new/db/transactions/0-1.txn': Permission denied
I am a root user, but again i have checked the username and group using the
"id" command, it displayed root as gid and uid.
so i have executed the below commands from the repositories folder to give
the permissions
chown -R root:root repo1_new
chmod g+w repo1_new -R
The above commands executed successfully but no use, when i again tried to
commit changes the same error displayed.
I am not getting what the mistake i am doing.. plz help
On Mon, Nov 30, 2009 at 1:19 PM, lalith prasad
<la...@scubetech.in>wrote:
> Hi Ryan
>
> Thanks for your support.
>
>
> - Initially we had repo1 and we have dumped repo1 to our local machine(
> our svn is in VPS machine). Then due to some reasons our VPS server got down
> for few days.
> - Mean while we have loaded the dumped file in ou r local Visual SVN
> server and made some commits to it.
> - The revision at the time we have dumped the repo is 913
> - The revision is increased to 926( in local SVN).
> - Then, after VPS has been repaired and it is ready for use, we have
> dumped the repo from local Visual svn server.
> - Then tried to rename the present repo1 to repo1_old ( our plan is,
> rename the repo1 to repo1_old and to create another repo with name repo1
> then to load the dumped file to it) but it failed as svn don't have rename
> command.
> - So, we have created another repository repo1_new keeping the repo1 as
> it is and loaded the dumped file in it. The new repo has same revision
> history and UUID
>
>
> The interesting thing is, if we point our webdav location directly to the
> new repo( as we did previously) then it is working. But if we modify the
> webdav to point to the svn parent path, then the problem persists.
>
> I think, the 2 step solution which you have provided should work. We will
> try it once and then let you know.
>
> I have never worked on SVN commands in such a deeper way, but with all your
> help and suggestions i am able to succeed in every thing. Hope this problem
> will also be solved as you have provided solution for that. Thanks for your
> support.
>
>
> On Sun, Nov 29, 2009 at 5:07 AM, Ryan Schmidt <
> subversion-2009d@ryandesign.com> wrote:
>
>> On Nov 28, 2009, at 07:01, Lalitha Prasad wrote:
>>
>> > Previously we have only one repository "repo1" in our svn repository
>> directory and we made our WebDav to point directly to the repository itself,
>> i.e. /home/repos/repo1.
>> >
>> > With our new requirement, we have created 2 new repositories repo1_new
>> and repo2. Now we have changed the svnpath of webdav to point to the parent
>> directory.
>> >
>> > Up to this every thing worked fine.
>> >
>> > But when we tried to switch our working copy to the new repo_new(both
>> repo1 and repo_new have same code but with different versions), then we are
>> getting error.
>> >
>> > Our repo1_new is like a mirror to the repo1.
>>
>> How was repo1_new created from repo1? Do they have the same UUID? Do they
>> have the same revision numbers?
>>
>>
>> > Detailed information:
>> > Previously, our workspace used to point to the url
>> http://sample.com/svn/branches/branch1.
>> > Now we need to switch to the url http://sample.com/svn/repo1_new/trunk
>>
>> You're trying to do two things at once. You need to do them separately.
>> First you need to relocate the working copy so that portion of the URL that
>> points to the root of the repository is updated:
>>
>> svn switch --relocate http://sample.com/svn
>> http://sample.com/svn/repo1_new
>>
>> (the repository root used to be at /svn and now it is at /svn/repo1_new)
>>
>> Then you can switch the part after the repository URL, if desired. For
>> example if you want to switch from branch1 to trunk, you do:
>>
>> svn switch http://sample.com/svn/repo1_new/trunk
>>
>> (the working copy has now been switched from wherever it was
>> (branches/branch1) to trunk)
>>
>>
>> > We have tried the command svn switch
>> http://sample.com/svn/repo1_new/trunk from the workspace. This has thrown
>> us error like this,
>> > Error:
>> > svn: 'http://sample.com/svn/branches/branch1'
>> > is not the same repository as
>> > 'http://sample.com/svn/repo1_new/trunk'
>> >
>> > How can solve this one and make my workspace to switch to the new url?
>>
>> If the above doesn't help, then it sounds like they are not the same
>> repository. If they aren't, then you can't switch or relocate; you must
>> check out new working copies.
>>
>>
>
>
> --
> Thanks & Regards,
> V. Lalitha Prasad,
> Software Developer
> Scube IT Solutions India Pvt. Ltd
> www.scubian.com
> lalith.prasad@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@scubian.com
(Cell) +91 9966282236
#4-1-319, 2nd Floor, Abids Road, Hyderabad - 01
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2425819
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Lalitha Prasad <la...@scubetech.in>.
Hi Ryan
Thanks for your support.
- Initially we had repo1 and we have dumped repo1 to our local machine(
our svn is in VPS machine). Then due to some reasons our VPS server got down
for few days.
- Mean while we have loaded the dumped file in ou r local Visual SVN
server and made some commits to it.
- The revision at the time we have dumped the repo is 913
- The revision is increased to 926( in local SVN).
- Then, after VPS has been repaired and it is ready for use, we have
dumped the repo from local Visual svn server.
- Then tried to rename the present repo1 to repo1_old ( our plan is,
rename the repo1 to repo1_old and to create another repo with name repo1
then to load the dumped file to it) but it failed as svn don't have rename
command.
- So, we have created another repository repo1_new keeping the repo1 as
it is and loaded the dumped file in it. The new repo has same revision
history and UUID
The interesting thing is, if we point our webdav location directly to the
new repo( as we did previously) then it is working. But if we modify the
webdav to point to the svn parent path, then the problem persists.
I think, the 2 step solution which you have provided should work. We will
try it once and then let you know.
I have never worked on SVN commands in such a deeper way, but with all your
help and suggestions i am able to succeed in every thing. Hope this problem
will also be solved as you have provided solution for that. Thanks for your
support.
On Sun, Nov 29, 2009 at 5:07 AM, Ryan Schmidt <
subversion-2009d@ryandesign.com> wrote:
> On Nov 28, 2009, at 07:01, Lalitha Prasad wrote:
>
> > Previously we have only one repository "repo1" in our svn repository
> directory and we made our WebDav to point directly to the repository itself,
> i.e. /home/repos/repo1.
> >
> > With our new requirement, we have created 2 new repositories repo1_new
> and repo2. Now we have changed the svnpath of webdav to point to the parent
> directory.
> >
> > Up to this every thing worked fine.
> >
> > But when we tried to switch our working copy to the new repo_new(both
> repo1 and repo_new have same code but with different versions), then we are
> getting error.
> >
> > Our repo1_new is like a mirror to the repo1.
>
> How was repo1_new created from repo1? Do they have the same UUID? Do they
> have the same revision numbers?
>
>
> > Detailed information:
> > Previously, our workspace used to point to the url
> http://sample.com/svn/branches/branch1.
> > Now we need to switch to the url http://sample.com/svn/repo1_new/trunk
>
> You're trying to do two things at once. You need to do them separately.
> First you need to relocate the working copy so that portion of the URL that
> points to the root of the repository is updated:
>
> svn switch --relocate http://sample.com/svn
> http://sample.com/svn/repo1_new
>
> (the repository root used to be at /svn and now it is at /svn/repo1_new)
>
> Then you can switch the part after the repository URL, if desired. For
> example if you want to switch from branch1 to trunk, you do:
>
> svn switch http://sample.com/svn/repo1_new/trunk
>
> (the working copy has now been switched from wherever it was
> (branches/branch1) to trunk)
>
>
> > We have tried the command svn switch
> http://sample.com/svn/repo1_new/trunk from the workspace. This has thrown
> us error like this,
> > Error:
> > svn: 'http://sample.com/svn/branches/branch1'
> > is not the same repository as
> > 'http://sample.com/svn/repo1_new/trunk'
> >
> > How can solve this one and make my workspace to switch to the new url?
>
> If the above doesn't help, then it sounds like they are not the same
> repository. If they aren't, then you can't switch or relocate; you must
> check out new working copies.
>
>
--
Thanks & Regards,
V. Lalitha Prasad,
Software Developer
Scube IT Solutions India Pvt. Ltd
www.scubian.com
lalith.prasad@scubian.com
(Cell) +91 9966282236
#4-1-319, 2nd Floor, Abids Road, Hyderabad - 01
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2425365
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 28, 2009, at 07:01, Lalitha Prasad wrote:
> Previously we have only one repository "repo1" in our svn repository directory and we made our WebDav to point directly to the repository itself, i.e. /home/repos/repo1.
>
> With our new requirement, we have created 2 new repositories repo1_new and repo2. Now we have changed the svnpath of webdav to point to the parent directory.
>
> Up to this every thing worked fine.
>
> But when we tried to switch our working copy to the new repo_new(both repo1 and repo_new have same code but with different versions), then we are getting error.
>
> Our repo1_new is like a mirror to the repo1.
How was repo1_new created from repo1? Do they have the same UUID? Do they have the same revision numbers?
> Detailed information:
> Previously, our workspace used to point to the url http://sample.com/svn/branches/branch1.
> Now we need to switch to the url http://sample.com/svn/repo1_new/trunk
You're trying to do two things at once. You need to do them separately. First you need to relocate the working copy so that portion of the URL that points to the root of the repository is updated:
svn switch --relocate http://sample.com/svn http://sample.com/svn/repo1_new
(the repository root used to be at /svn and now it is at /svn/repo1_new)
Then you can switch the part after the repository URL, if desired. For example if you want to switch from branch1 to trunk, you do:
svn switch http://sample.com/svn/repo1_new/trunk
(the working copy has now been switched from wherever it was (branches/branch1) to trunk)
> We have tried the command svn switch http://sample.com/svn/repo1_new/trunk from the workspace. This has thrown us error like this,
> Error:
> svn: 'http://sample.com/svn/branches/branch1'
> is not the same repository as
> 'http://sample.com/svn/repo1_new/trunk'
>
> How can solve this one and make my workspace to switch to the new url?
If the above doesn't help, then it sounds like they are not the same repository. If they aren't, then you can't switch or relocate; you must check out new working copies.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2425142
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Lalitha Prasad <la...@scubetech.in>.
Hi All
I have got another scenario, where in i am feeling difficulty to switch the
workspace to a new URL.
Previously we have only one repository "repo1" in our svn repository
directory and we made our WebDav to point directly to the repository itself,
i.e. /home/repos/repo1.
With our new requirement, we have created 2 new repositories repo1_new and
repo2. Now we have changed the svnpath of webdav to point to the parent
directory.
Up to this every thing worked fine.
But when we tried to switch our working copy to the new repo_new(both repo1
and repo_new have same code but with different versions), then we are
getting error.
Our repo1_new is like a mirror to the repo1.
*Detailed information:*
Previously, our workspace used to point to the url
http://sample.com/svn/branches/branch1.
Now we need to switch to the url http://sample.com/svn/repo1_new/trunk
We have tried the command svn switch http://sample.com/svn/repo1_new/trunk from
the workspace. This has thrown us error like this,
*Error:*
svn: 'http://sample.com/svn/branches/branch1'
is not the same repository as
'http://sample.com/svn/repo1_new/trunk'
How can solve this one and make my workspace to switch to the new url?
Please help me in solving this problem
Thanks in advance
--
Thanks & Regards,
V. Lalitha Prasad,
Software Developer
Scube IT Solutions India Pvt. Ltd
www.scubian.com
lalith.prasad@scubian.com
(Cell) +91 9966282236
#4-1-319, 2nd Floor, Abids Road, Hyderabad - 01
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2425088
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 14, 2009, at 02:52, lalith prasad wrote:
> I have already used switch command. But it doesn't worked for me.
> command i have used
> svn switch file:///home/user/svn/project/branches/branch1 file:///home/user/svn/project/trunk/
> Error i get
> svn: 'file:///home/user/svn/project/branches' is not a working copy
> svn: Can't open file 'file:///home/user/svn/project/branches/.svn/entries': No such file or directory
The usage of the "svn switch" command is "svn switch URL [PATH]" where "PATH" is the local filesystem path to the working copy you want to switch (can be omitted if you're currently in that working copy), and "URL" is the new URL within the repository that you want the working copy to be switched to. You don't specify the old URL. (The working copy already knows it.)
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417884
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Lalitha Prasad <la...@scubetech.in>.
Hi,
I have already used *switch* command. But it doesn't worked for me.
*command i have used*
svn switch file:///home/user/svn/project/branches/branch1
file:///home/user/svn/project/trunk/
*Error i get*
svn: 'file:///home/user/svn/project/branches' is not a working copy
svn: Can't open file 'file:///home/user/svn/project/branches/.svn/entries':
No such file or directory
*Note:*
- I have both svn repos and workspace in one system itself.
- I have checked out my workspace from only the branch
url(i.e.file:///home/user/svn/project/branches/branch1)
I have execute the above command from workspace. And all the trunk and
branch are committed to the svn. So, sure .svn entries are available in the
branch folder.
I am unable to understand why i am getting this error. What the wrong i am
doing?
On Sat, Nov 14, 2009 at 12:23 PM, Ryan Schmidt <
subversion-2009b@ryandesign.com> wrote:
>
> On Nov 14, 2009, at 00:40, Lalitha Prasad wrote:
>
> > 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.
>
> Use "svn switch" (without the --relocate parameter).
>
>
>
--
Thanks & Regards,
V. Lalitha Prasad,
Software Developer
Scube IT Solutions India Pvt. Ltd
www.scubian.com
lalith.prasad@scubian.com
(Cell) +91 9966282236
#4-1-319, 2nd Floor, Abids Road, Hyderabad - 01
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417881
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 14, 2009, at 00:40, Lalitha Prasad wrote:
> 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.
Use "svn switch" (without the --relocate parameter).
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417871
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Lalitha Prasad <la...@scubetech.in>.
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
<la...@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 <Bo...@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@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@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@subversion.tigris.org].
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Lalitha Prasad <la...@scubetech.in>.
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 <Bo...@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@scubian.com
(Cell) +91 9966282236
#4-1-319, 2nd Floor, Abids Road, Hyderabad - 01
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417606
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Bob Archer <bo...@amsi.com>.
> 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
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417593
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Les Mikesell <le...@gmail.com>.
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.
--
Les Mikesell
lesmikesell@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417592
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Bob Archer <bo...@amsi.com>.
It's not. That branch won't have any history. You should delete that folder and use the copy command as I showed below.
BOb
From: lalith prasad [mailto:lalith.prasad@scubetech.in]
Sent: Friday, November 13, 2009 10:36 AM
To: Bob Archer
Cc: Daniel Becroft; users@subversion.tigris.org
Subject: Re: Give us instructions to create a new repository with the branch code of a old repository
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 <Bo...@amsi.com>> wrote:
Specify the revision in your copy command:
svn cp -r 898 $REPO/Path/To/Trunk@898 $REPO/Path/To/BranchWanted
BOb
From: Lalitha Prasad [mailto:lalith.prasad@scubetech.in<ma...@scubetech.in>]
Sent: Friday, November 13, 2009 6:18 AM
To: Daniel Becroft
Cc: users@subversion.tigris.org<ma...@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 <dj...@gmail.com>> wrote:
On Fri, Nov 13, 2009 at 2:08 PM, Lalitha Prasad
<la...@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@scubian.com<ma...@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<http://www.scubian.com>
lalith.prasad@scubian.com<ma...@scubian.com>
(Cell) +91 9966282236
#4-1-319, 2nd Floor, Abids Road, Hyderabad - 01
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2417589
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Give us instructions to create a new repository with the branch
code of a old repository
Posted by Lalitha Prasad <la...@scubetech.in>.
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 <Bo...@amsi.com> wrote:
> Specify the revision in your copy command:
>
>
>
> svn cp -r 898 $REPO/Path/To/Trunk@898 $REPO/Path/To/BranchWanted
>
>
>
> BOb
>
>
>
>
>
> *From:* Lalitha Prasad [mailto:lalith.prasad@scubetech.in]
> *Sent:* Friday, November 13, 2009 6:18 AM
> *To:* Daniel Becroft
> *Cc:* users@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 <dj...@gmail.com>
> wrote:
>
> On Fri, Nov 13, 2009 at 2:08 PM, Lalitha Prasad
> <la...@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@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@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@subversion.tigris.org].