开发者

Checking out a repository I created on a server using SVN

开发者 https://www.devze.com 2023-03-09 03:39 出处:网络
This is my first time creating a SVN repository. I am running into problems on the client machine when I try to check out my repo files. I have no issues when I try to check things out on the machine

This is my first time creating a SVN repository. I am running into problems on the client machine when I try to check out my repo files. I have no issues when I try to check things out on the machine where I created the repos; i.e. when I do: svn co file:///repo_path/project_name/trunk

But, when I try to access the same from a remote machine using network protocol (http://...), I get the same issue as described in An SVN error (200 OK) when checking out from my online repository.

Unfortunately, that discussion did not help me since I'm sure I have the right SVN HTTP URL. I checked the conf/svnserve.conf and saw the following:

[general]
开发者_运维百科anon-access = read
auth-access = write
password-db = passwd
realm = My First Repository

Please let me know what I'm missing.


My configuration consists of three files (located in the conf folder):

  • authz
  • passwd
  • svnserve.conf

They serve the following purpose:

svnserve.conf:
configures the overall access to the repo and provides the following content:

[general]
anon-access = none
password-db = passwd    # password database
authz-db    = authz     # authorization rules

passwd:
provides passwords for certain users:

harry = password
sally = password
charlie = password

authz:
authorization file for svnserve:

[groups]
# put harry and sally into the developers group
developers = harry,sally

# configure access for the root of the repo
[/]
# developers group has read/write access
@developers = rw
# charlie can only read
charlie = r

This should do it.

0

精彩评论

暂无评论...
验证码 换一张
取 消