如何在VisualSVN或客户端TortoiseSVN(win32平台)中重命名项目?
我试图在服务器端和客户端找到任何看起来像“重命名”的功能,但失败了,这可能吗?
I tried to find any feature seems like 'rename' both on server side and client side but failed, is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
1) 签入项目&确保没有人在使用它。停止服务器可能是个好主意。
2) 备份存储库
3) 在服务器上,将根项目目录重命名为新名称
4) 再次启动服务器,并在客户端上使用新名称签出。
执行所有这些操作需要您自担风险 - 我仅使用本地文件系统对其进行了测试。
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.
我正在寻找类似的答案,并且能够拼凑出这个(令人惊讶的简单)解决方案。假设,IF您有权登录运行 VisualSVN 服务器的实际服务器(计算机)。 而且你是唯一的开发者。致力于它(或者可以轻松地告诉其他开发人员有关更改的信息,以便他们可以效仿)。
服务器端:
登录到该服务器,打开“VisualSVN Server Manager”(GUI)
就在主页/起始页的“存储库”下,单击
“导入现有存储库...”指定源&目的地(它
将为目标创建新文件夹)。
客户端(意思是,您存储工作副本项目/文件并实际在 Visual Studio 中处理它们的计算机/文件夹):
服务器端:
同样,您需要将重命名告知从事此项目的所有其他开发人员,因为每个人(每个“客户端”)都需要执行 SVN Relocate 操作。
如果这种情况不适用,您需要深入研究 VisualSVN Server 管理工具: http://www.visualsvn.com/support/svnbook/reposadmin/maint/
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):
Server-side:
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:
我没有尝试,但在 TortoiseSVN 中,右键单击时会出现一个存储库浏览器,您可能可以在此处重命名项目名称。
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.
后期添加:在较新版本的 VisualSVN Server 中,您可以:
Late addition: In the newer version of VisualSVN Server, you can: