使用svnsync与svnserve和auth-access同步时出现问题



创建存储库'repo1'

svnadmin create repo1

CHANGE DIRECTORY conf

svnserve.conf目录

[general]
anon-access = read
auth-access = write
password-db = passwd.txt
authz-db = authz.txt
realm = Home SVN Server

password.txt内容

[users]
susanta = susanta

authz.txt目录

[/]
susanta = rw

运行"repo1"

svnserve -d -r c:/repo1 --listen-port 3691

创建镜像

svnadmin create repo1_mirror

创建文件pre-revprop-change。钩子中的CMD

pre-revprop-change.cmd的内容

exit 0

SVNSYNC init

svnsync init file:///c:/repo1_mirror svn://localhost:3691/

输出:复制版本0的属性

SVNSYNC同步
svnsync sync file:///c:/repo1_mirror
Output:
Committed revision 1.
Copied properties for revision 1.
Committed revision 2.
Copied properties for revision 2.
Committed revision 3.
Copied properties for revision 3.
Committed revision 4.
Copied properties for revision 4.

检查repo1_mirror

svnserve -d -r c:/repo1_mirror --listen-port 3692

使用TortoiseSVN查看

为空

注意:我在svnserve.conf中运行了没有身份验证的测试,一切正常。

这肯定与身份验证有关。TortoiseSVN问你密码了吗?

如果不考虑在svnserve.conf

中禁用匿名访问
[general]
anon-access = none
auth-access = write
password-db = passwd.txt
authz-db = authz.txt
realm = Home SVN Server

或在authz.txt文件中允许读访问。

[/]
* = r
susanta = rw

最新更新