tags:

views:

36

answers:

3

Hi all, I have migrated some project from CVS to SVN. Now I need to rename that project into another name.What can be the best possible way to rename it, keeping the all the history intact.The project folder contains some 100 numbers of C and its header files.Any kind of help will be appreciated.

+2  A: 

Here is how you rename a repository:

http://www.mdinescu.com/how_to_rename_a_svn_repository.php

Daniel A. White
+3  A: 

There is now buit-in mechanism in Subversion to rename a repository.

The best option in order to maintain integrity and history is to perform a repository dump of the old repository and then re-import the dump into a new repository.

I wrote a post about this here: How To Rename an SVN repository.

You will only need to use the svnadmin utility, and then svnadmin create a new repository, svnadmin dump the contents of the previous repository and finally svnadmin import the dump into the new repository that you had created using svnadmin create.

EDIT

If you need to rename a "project" inside the repository - and by project I assume you mean a directory, then you simply need to use the svn move command. Note that this is done using the svn client, not svnadmin. The svn move command's syntax is svn move SRC DEST and it allows you to basically preform a rename of a file or a directory inside of your repository. All history should be preserved for that file (or directory).

Miky Dinescu
actually i have repository. That cantains several projects. Among those project i need to rename a project not whole repository . Is there any way for it?
thetna
@Minky: Is your blog a 1st April joke?To rename a repository, just rename the directory where your repo relies: eg if your repo lies in /opt/svn/my_old_name just apply:mv /opt/svn/my_old_name /opt/svn/new_nameNo need for dump/reload!
Peter Parker
@Penter, thanks for enlightening us..
Miky Dinescu
A: 

svn move does what your are looking for.

svn move SRC DST

whereas SRC and DST are both a repository URL or both a working copy path.

For a detailed description have a look at the manual

zellus