xcode 比较修订时拒绝 SVN 访问
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3584643/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SVN access denied when comparing revisions
提问by Gonzalo
We're using an SVN repository. I am getting the error below when we try to compare a local unmodified file with the latest revision of the file in the repository. In other words, someone's checked in a change and if I update I will get their change but first I want to see what their change was. DOn't think it matters but we're using Xcode and using the menu item SCM -> Compare With -> Latest.
我们正在使用 SVN 存储库。当我们尝试将本地未修改文件与存储库中文件的最新版本进行比较时,我收到以下错误。换句话说,有人签入了更改,如果我更新,我会得到他们的更改,但首先我想看看他们的更改是什么。不要认为这很重要,但我们正在使用 Xcode 并使用菜单项 SCM -> 比较 -> 最新。
Error: 220001 (Item is not readable) Description: Unreadable path encountered; access denied
错误:220001(项目不可读)说明:遇到不可读的路径;拒绝访问
Any pointers where to look to fix this appreciated. I looked in the svnserve.conf which has the default settings. Nothing jumped out to me.
任何可以解决此问题的指针都表示赞赏。我查看了具有默认设置的 svnserve.conf。什么都没有跳出来给我。
Also,
还,
% svn log
% svn 日志
returns "svn: Item is not readable".
返回“svn:项目不可读”。
Thanks, Gonzalo
谢谢,贡萨洛
回答by kadkaz
You have bad configuration (or Subversion has a bug:)).
您的配置不正确(或 Subversion 有错误 :))。
Anyway it can be fixed by changing in "svnserve.conf" file the line:
无论如何,它可以通过更改“svnserve.conf”文件中的行来修复:
[general]
anon-access = none
Another solution to change only "authz" file the line:
仅更改“authz”文件行的另一种解决方案:
[/]
* = r
That solution is given anonymous reads your repository that is not good. If you need to use only authorization repository than use the first solution. (was tested with svn 1.6.17, but think it does not depend from version)
该解决方案给出了匿名读取您的存储库的不好的方法。如果您只需要使用授权存储库而不是使用第一个解决方案。(用 svn 1.6.17 测试过,但认为它不依赖于版本)
回答by Gnustavo
You probably don't have enough rights to read every file changed in those revisions. Hence, Subversion considers the revisions "unreadable" for you. This is explained in the authz_policy.txtdocument.
您可能没有足够的权限读取这些修订版中更改的每个文件。因此,Subversion 认为这些修订版对您来说是“不可读的”。这在authz_policy.txt文档中进行了解释。