I tried to find any feature seems like 'rename' both on server side and client side but failed, is it possible?
-
1Is this about renaming the repository name, or something in the repository? – Sander Rijken Dec 29 '09 at 19:39
5 Answers
I was searching for a similar answer and was able to piece together this (surprisingly easy) solution. Assuming, that is, IF you have access to login to the actual server (machine) that runs the VisualSVN server. And you're the only dev. working on it (or can easily tell other dev's about the change so they can follow suit).
Server-side:
Login to said server, open the "VisualSVN Server Manager" (GUI)
Right there on the home/start page, under "Repositories", click the "Import existing repository..." Specify source & destination (it will create new folder for destination).
Client-side (meaning, your computer/folder where you've stored your working-copy project/files & actually work on them in Visual Studio):
- in Windows Explorer, open up said project's folder and right-click, then under "TortoiseSVN" -> click Relocate... ; it will ask for the SVN URL of the new repository, and then prompt you "are you sure?" (say yes).
- Verify that you can view the whole SVN log history, do an SVN-update, etc. (whatever you feel comfortable with)
Server-side:
- Delete (using VisualSVN Server Manager, still) the old repository.
Again, you need to tell all other developers working on this project about the rename, because each one (each 'client') needs to do the SVN Relocate thing.
If that situation doesn't apply, you'd need to delve more into VisualSVN Server admin-tools: http://www.visualsvn.com/support/svnbook/reposadmin/maint/

- 1,935
- 1
- 25
- 34
1) Check in the project & make sure no-one is using it. Probably a good idea to stop the server.
2) Back up the repository
3) On the server, rename the root project directory to your new name
4) Start the server again, and on the client, check out using the new name.
Do all this at your own risk - I've only tested it with a local filesystem.
-
How to do step 2&3 ? VisualSVN only tell me it is located at http:// kaminotebook:70/svn/, no actual path. I don't know where it is on my hd – Edward Dec 28 '09 at 14:37
-
-
I found it! VisualSVN doesn't display the location and it's been a long time that i forget it. Your solution works like a charm! I'm greatly appreciate it. i ever did it by new a project and transfer all project files but all history lost. – Edward Dec 28 '09 at 14:50
On you client machine:
- right click on the project folder > Repo-browser
- in Repo-browser rename the project
- in your machine, checkout the project with the new name, where you need it
- remove the folder with the old name from your machine

- 26,356
- 27
- 122
- 180
i did not try but in TortoiseSVN there is a Repo-Browser when you right click and you can probably rename the project name here.

- 6,889
- 8
- 33
- 55
-
A window pop and said 'Rename item from http://kaminotebook:70/svn/Test to http://kaminotebook:70/svn/iTest', after that threw an error said 'Repository moved permanently to 'http://kaminotebook:70/'; please relocate'. Nothing changed. – Edward Dec 28 '09 at 14:24
-
1probably after you renamed, you should call relocate. then write there your new directory path. – ufukgun Dec 28 '09 at 16:02
Late addition: In the newer version of VisualSVN Server, you can:
- Expand the list of repositories
- Right-click the current name of the repo to change
- Select Rename
- Read and understand the pop-up warning message
- Perform Step #4 again
- Select the YES button
- VisualSVN Server will handle all of the other SERVER-SIDE steps. Now it's your job to update the users.

- 51
- 6