您可以使用 Tortoise 从一个存储库移动到另一个存储库吗?
好的,我在 Vista 中使用 Tortoise Subversion,在 Windows Server 2007 开发服务器上使用 VisualSVN。
最初我只是在我的本地电脑上而不是在服务器上使用我自己的 Tortoise 实例,直到他们给我提供了我的开发服务器。 所以我有很多提交和评论。 所以存储库的 url 是这样的:
https://mylocalpc:8443/svn/MyLocalRepositoryName/trunk/WebProjectName
结构是我有一个名为 WebProjectName 的单个存储库,然后在它下面有分支、标签和主干文件夹:
MyLocalRepositoryName
branches
tags
trunk
现在我有了一个实际的开发服务器,我创建了一个新的存储库并设置它有点不同。 我创建了一个主存储库,然后为每个项目创建了文件夹...WebProjectName 是一个文件夹。 每个项目文件夹下有 3 个文件夹(branches、tags、trunk)。 所以它看起来像这样
DevRepositoryName
WebProjectName
branches
tags
trunk
SomeProject2
branches
tags
trunk
....
我的开发服务器上的 WebProjectName 的 url 是:
https://devserver/svn/DevRepositoryName/WebProjectName/trunk
我现在的问题是,我想使用名为 WebProjectName 的新存储库和文件夹来代替我的本地...因为现在我们正在使用开发服务器服务器感谢上帝。
但我不想丢失本地服务器下的所有提交历史记录和注释。
你能以某种方式将所有这些东西移植到一个新的存储库和一个与我在本地设置的结构完全不同的结构吗?
如果是这样,您将如何专门使用 Windows 中的 Tortoise 上下文菜单和命令来解决此问题?
Ok, I am using Tortoise Subversion in Vista and using VisualSVN on a Windows Server 2007 dev server.
Originally I was just using my own instance of Tortoise not on a server but just my local PC until they got me my dev server. So I had a bunch of commits and comments going on. So the url to the repository was this:
https://mylocalpc:8443/svn/MyLocalRepositoryName/trunk/WebProjectName
The structure was that I had a single repository called WebProjectName and then under it branches, tags, and trunk folder:
MyLocalRepositoryName
branches
tags
trunk
Now that I have an actual dev server, I created a new repository and set it up a bit different. I created one main repository and then folders for each of our projects...WebProjectName being one folder. And under each project folder the 3 folders (branches, tags, trunk). So it looks like this
DevRepositoryName
WebProjectName
branches
tags
trunk
SomeProject2
branches
tags
trunk
....
And the url to the WebProjectName on my dev server would be:
https://devserver/svn/DevRepositoryName/WebProjectName/trunk
My quesiton now is, I want to use the new repository and folder called WebProjectName in place of my local...since now we're using a dev server thank God.
But I don't want to loose all the commit history and comments that I had locally under my local server.
Can you somehow port all that stuff over to a new repository AND to a structure that is completely different than what I was setting up locally?
If so, how would you go about this specifically using the Tortoise context menu in Windows and commands?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为最好的解决方案是更改现有存储库的结构,然后将其移至开发服务器。
首先,将结构设置为您想要的结构(使用右侧拖动上下文菜单中的 SVN Move... 项目)。
完成后,将存储库从本地计算机复制到开发服务器。
最后,对工作副本执行重新定位以指向开发服务器上的适当路径。
I would think that the best solution would be to change the structure of your existing repository then move that over to the dev server.
First, set up the structure (using the SVN Move... items in the right drag context menu) to be what you want.
Once that is done, copy the repository over from your local machine to the dev server.
Finally, perform a Relocate on your working copies to point to the appropriate path on the dev server.