You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Charan <ch...@gmail.com> on 2010/07/13 16:52:07 UTC

changing the root repository name without losing revision history

Hi Guys,

Is it possible to change the repository name without losing the history.
Currently all my code is under the repository
http://local.svn.com/svn/repoe5r/. I want the name *repoe5r* to be changed
to *SVNROOT*. Can I do that?


Thanks

Re: changing the root repository name without losing revision history

Posted by David Weintraub <qa...@gmail.com>.
Is "repoe5r" the name of the repository or a directory under the
repository? From your email, it looks like repoe5r is the name of a
directory under the repository.

You can rename the directory, and it won't change the history.
Subversion will understand that the name of this directory name was
changed. However, there are some secondary effects you should be aware
of:

* All developers will now have to run "svn relocate".
* Some Subversion commands (like svn log) may need a bit of tweaking
to work if you specify the entire directory name.

On Tue, Jul 13, 2010 at 12:52 PM, Charan <ch...@gmail.com> wrote:
> Hi Guys,
> Is it possible to change the repository name without losing the history.
> Currently all my code is under the repository
> http://local.svn.com/svn/repoe5r/. I want the name repoe5r to be changed to
> SVNROOT. Can I do that?
>
> Thanks
>



-- 
David Weintraub
qazwart@gmail.com

RE: changing the root repository name without losing revision history

Posted by Keith Moore <Ke...@securency.com>.
From: Itamar O [mailto:itamarost@gmail.com]
Sent: Wednesday, 14 July 2010 6:45
To: Charan
Cc: users@subversion.apache.org
Subject: Re: changing the root repository name without losing revision history

On Tue, Jul 13, 2010 at 7:52 PM, Charan <ch...@gmail.com>> wrote:
Hi Guys,

Is it possible to change the repository name without losing the history. Currently all my code is under the repository http://local.svn.com/svn/repoe5r/. I want the name repoe5r to be changed to SVNROOT. Can I do that?


Thanks

The history of the repository will remain untouched if you rename the repository.
Of course you will need access to the server to do this.
You just need to "switch relocate" all working copies to the new URL.

Just to make sure - is "repoe5r" the repository, or a directory within a repository named "svn"?
(my answered assumed it is a repository)


One thing to note, if you have used svn:externals to reference this repository changing the url will break them (with the exception of certain relative references).


#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################

Re: changing the root repository name without losing revision history

Posted by Itamar O <it...@gmail.com>.
On Tue, Jul 13, 2010 at 7:52 PM, Charan <ch...@gmail.com> wrote:

> Hi Guys,
>
> Is it possible to change the repository name without losing the history.
> Currently all my code is under the repository
> http://local.svn.com/svn/repoe5r/. I want the name *repoe5r* to be changed
> to *SVNROOT*. Can I do that?
>
>
> Thanks
>

The history of the repository will remain untouched if you rename the
repository.
Of course you will need access to the server to do this.
You just need to "switch relocate" all working copies to the new URL.

Just to make sure - is "repoe5r" the repository, or a directory within a
repository named "svn"?
(my answered assumed it is a repository)