您的位置:首页 > 其它

[版本控制]subversion之svnserver配置陷阱-空格问题

2010-08-09 17:22 344 查看
安装了subversion服务器windows版本后,直接使用svnserver是最方便的选择,其配置文件位于安装时设置的代码目录下conf文件夹下,其中svnserve.conf就是服务器配置文件,看其说明很容易进行配置,但是有一个隐藏的陷阱很容易被忽视(我就是陷在里面浪费了近2个小时的时间)。这个陷阱就是在取消注释或者添加新项目时,行头不能有空格。比如说,配置匿名用户和授权用户的访问权限:

[general]

### These options control access to the repository for unauthenticated

### and authenticated users. Valid values are "write", "read",

### and "none". The sample settings below are the defaults.

anon-access = read

auth-access = write

如果按照上面的写法,那么未授权(匿名)用户可以读代码库但是不能提交代码,但是授权用户就出现访问问题,就是因为“auth-access = write”多加的空格。

所以正确的方法是:

[general]

### These options control access to the repository for unauthenticated

### and authenticated users. Valid values are "write", "read",

### and "none". The sample settings below are the defaults.

anon-access = read

auth-access = write

其他配置文件也是如此。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: