开发者

How to rename a project in VisualSVN or by the client TortoiseSVN (win32 platform)?

I tried to find any feature seems like 'rename' both on server side and client side but failed, is it possible开发者_StackOverflow社区?


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.


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/


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜