如何在 Zend for Eclipse 上正确执行 SVN 重定位
我已经使用 Zend Studio for Eclipse 大约一年了,我们的 SVN 存储库经历了许多不同的重新定位(IP 更改等),但我始终无法在 Zend Studio 上正确移动存储库。对于此类事件,您通常遵循的标准程序是什么?
我以为我可以转到 SVN 存储库透视图并更改存储库属性中的 URL,但这不起作用。
我也尝试过使用svn switch --relocate ....
命令似乎破坏了我的工作副本,我不得不经历很多痛苦才能回到原点。
我正在使用 MacOSX 10.5.6、Zend Studio for Eclipse 6.1 和命令行版本 1.6.2 (r37639) 上的 SVN。我不知道如何获取 Subversive(Zend 使用的 SVN 插件)的版本,
我希望这个网站上的一位天才能够提供帮助。我一直被困在这个问题上。非常感谢大家:)
I've been using Zend Studio for Eclipse for about a year, and our SVN repository has gone through a number of different relocations (IP changes, etc.), but I'm never able to correctly move the repository on Zend Studio. What is the standard procedure that you usually follow for such an event?
I assumed I could just go to the SVN repository perspective and change the URL in the properties of the repository, but that didn't work.
I also tried to use thesvn switch --relocate ....
command which seemed to corrupt my working copy and I had to go through a lot of pain to get back to square one.
I'm working on MacOSX 10.5.6, Zend Studio for Eclipse 6.1 and SVN on commandline version 1.6.2 (r37639). I'm not sure how to get the version of Subversive (SVN plugin that Zend is using)
I would love one of the geniuses on this site to help out. I've been stuck on this forever. Thanks a lot guys :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯,
svn switch --relocate
确实是做到这一点的方法。由于提供的信息很少,很难/不可能告诉您出了什么问题以及如何防止这种情况。Well,
svn switch --relocate
is indeed the way to do this. With the little information given, it's hard/impossible to tell you what went wrong and how to prevent that.svn switch --relocate 应该用于将工作副本重新指向不同的 IP 地址。就我个人而言,我发现在处理低级操作时,最好使用命令行 svn 而不是通过 Eclipse。关闭 Eclipse,运行 svn 命令,然后重新启动 Eclipse。
在尝试此类操作之前,您始终可以通过简单地制作一个副本来备份整个工作副本。
svn switch --relocate is supposed to be used for repointing a working copy at a different IP address. Personally I find when dealing with low-level operations it is better to use the command line svn instead of going through Eclipse. Close Eclipse, run the svn command, then restart Eclipse.
You can always back up your entire working copy by simply making a copy of it before you try something like this.