您的安装中是否也出现此 TortoiseSVN 错误
我已经在 C > 中安装了 TortoiseSVN程序文件>乌龟SVN。我想用命令提示符来测试它,所以我打开
cmd
和 cd
到 TortoisSVN 安装文件夹内的 bin 文件夹。
我在命令提示符下尝试了 svn help ,效果很好。 然后我尝试了 svn status ,它给了我这个错误。
svn: warning: W155007: 'C:\Program Files\TortoiseSVN\bin' is not a working copy
有人可以尝试这两个命令并告诉我他们是否得到类似的结果吗?
I've installed TortoiseSVN in C > Program Files > TortoiseSVN
. I wanted to test it with command prompt, so I opened cmd
and cd
to the bin folder inside the TortoisSVN installation folder.
I tried svn help
in the command prompt and it worked fine.
Then I tried svn status
and it gave me this error.
svn: warning: W155007: 'C:\Program Files\TortoiseSVN\bin' is not a working copy
Can someone try those 2 commands and tell me if they get similar results?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您的错误:
表示目录
C:\Program Files\TortoiseSVN\bin
不是 SVN 存储库的工作副本。工作副本包含一个隐藏的.svn/
文件夹,其中包含元数据,由svn
读取。该消息绝对正确,不是错误而是警告。发生这种情况是因为
svn help
不需要 SVN 存储库的工作副本即可正常运行。它只是向您显示帮助文本。另一方面,
svn status
需要 Subversion 存储库。Your error:
Says that the directory
C:\Program Files\TortoiseSVN\bin
is not a working copy of a SVN repository. A working copy contains a hidden.svn/
folder with metadata, which is read bysvn
. The message is absolutely correct and isn't an error but a warning.This happens because
svn help
doesn't require a working copy of a SVN repository to run properly. It just shows you the help text.svn status
, on the other hand, needs a Subversion repository.当然每个人都会遇到同样的错误。
svn status
用于了解工作副本的状态。如果您不在工作副本中,您将收到此错误。请参阅http://svnbook.red-bean.com/en/1.0/re26。 html
Of course everyone will get the same error.
svn status
is used to know the status of a wroking copy. If you're not inside a working copy, you'll get this error.See http://svnbook.red-bean.com/en/1.0/re26.html
我猜测路径
C:\Program Files\TortoiseSVN\bin
没有您正在处理的源代码。您需要从本地工作副本中调用 svn status,而不是从 svn.exe 可执行文件所在的文件夹中调用。否则它不知道你在谈论什么工作副本。因此,如果您的本地代码位于
C:\Data\Code\My Project\
之类的位置,那么您需要cd
到该文件夹并从那里运行命令。I'm guessing the path
C:\Program Files\TortoiseSVN\bin
doesn't have the source code you're working on. You need to callsvn status
from within a local working copy, not from the folder where thesvn.exe
executable is located. Otherwise it doesn't know what working copy you're talking about.So if your local code is in something like
C:\Data\Code\My Project\
then you'd need tocd
to that folder and run the command from there.您只能在结帐代码上运行 svn status
you can only run svn status on checkout code