尝试 svn checkout,但得到: svn: '.' 已经是不同 URL 的工作副本
我正在尝试 svn checkout 到我的 public_html 文件夹中,但出现此错误: SVN: '.' 已经是不同 URL 的工作副本
我的兄弟已经为我设置了一个样板站点,但我已经对其进行了更改并将这些更改放入我自己的存储库中。 如何使该文件夹不是他最初设置的存储库的工作副本?
我可以删除 public_html 文件夹并创建一个新文件夹吗? 我很乐意从头开始,因为我将在该站点上签出已安装的 drupal 站点。
我在另一个问题中看到解决方案可能是简单地删除 .svn 目录。 我尝试了这个,但它说 .svn 中的几个子目录的权限被拒绝。
预先感谢您的任何帮助,希望这个问题不太愚蠢......
I'm trying to svn checkout into my public_html folder, but I get this error:
svn: '.' is already a working copy for a different URL
My brother already set up a boiler plate site for me, but I've changed it and put those changes into a repo of my own. How do I make this folder not be a working copy of the repo he set up originally?
Can I delete the public_html folder and make a new one? I'm fine with starting from scratch, as I'm going to just checkout an already installed drupal site onto this site.
I saw in another question that a solution may be to simply delete the .svn directory. I tried this, but it said permission denied for several subdirectories in .svn.
Thanks in advance for ANY help, hope this question isn't too dumb...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
你可以尝试“svn switch”。 在 http://svnbook.red-bean.com/en/1.0/ch04s05.html 的示例中,它很简单:
但是由于您有子目录权限问题,因此您重新创建 public_html 的计划听起来像是最好的解决方案; 只是要小心“rm”的拼写错误。 尝试使用“mv”将旧目录移开,这不依赖于子目录权限。
您可以使用:
You could try "svn switch". In the example at http:// svnbook.red-bean.com/en/1.0/ch04s05.html, it's as easy as:
But since you have subdirectory permissions issues, your plan to re-create public_html sounds like the best solution; just beware of typos with 'rm'. Try 'mv' to just move the old directory out of the way, which doesn't depend on subdirectory permissions.
You can use:
如果您赶时间,这一系列命令应该可以完成。
必须有一种方法来更新工作副本的参考 url,但我不知道它是即时的。
This sequence of commands should do it if you're in a hurry.
There's gotta be a way to update the working copy's reference url, but I don't know it off-hand.
如果您不需要与您兄弟的存储库连接,则只需删除他的所有
.svn
目录即可。权限问题肯定与SVN无关。
If you don't need a connection with your brother's repo, then just remove all his
.svn
dirs.The permission issue is not related to SVN, definitely.
我认为您的情况最好的选择是删除该文件夹并再次创建它,从 SVN 签出
I think that the best option in your case is to delete the folder and create it again doing the checkout from SVN
即使您无法删除目录,您也可以将它们移走:
编辑:
您至少应该对主目录具有写访问权限:
Even when you can not delete directories you may move them away:
edit:
You should have write access at least to your home directory:
我刚刚在 Eclipse 3.5 中遇到了这个错误(“...已经是不同 URL 的工作副本”)。 我试图从 Eclipse“SVN Repository Exploring”角度(来自 tigris.org 的 Subclipse subversion 客户端适配器)检查项目的特定分支。 我已经深入研究了
[project] | 分支机构 | 我感兴趣的[分支]
,然后右键单击我感兴趣的分支并选择Checkout
; 这导致了错误。对我来说,解决方法是转至“Java EE”透视图,右键单击我的项目,然后选择替换为 | 上下文菜单中的分支/标签...。 这样做,我成功下载了我感兴趣的分支。
I ran into this error ("... is already a working copy for a different URL") just now in Eclipse 3.5. I was trying to check out a particular branch of a project from the Eclipse "SVN Repository Exploring" perspective (the Subclipse subversion client adapter from tigris.org). I had drilled into
[project] | branches | [branch]
that I was interested in, then did right-click on the branch that I was interested in and selectedCheckout
; this led to the error.For me, the fix was to instead go to the "Java EE" perspective, right-click on my project, and select
Replace With | Branch/Tag...
from the context menu. Doing this, I was successfully able download the branch I was interested in.我发现,如果我只是转到 J2EE 透视图,右键单击该项目,然后在尝试签出新分支之前选择“删除”,就可以解决此问题。
I've found that if I simply go to the J2EE perspective, right click on the project, and select Delete before I attempt to checkout a new branch, it solves this problem.