1

我在 linux 上有一个主要的 svn 服务器,我正在使用 VisualSvn Server 制作一个只读同步版本。我正在关注关于

http://svnbook.red-bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.replication

http://blogs.geniuscode.net/RyanDHatch/?p=9

但我仍然收到错误

svnsync: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent
svnsync: At least one property change failed; repository is unchanged
svnsync: Error setting property 'sync-lock':
could not remove a property

我已经使用 svn 管理控制台在目标服务器上添加了适当的钩子(我猜它是需要这个钩子的目标服务器,而不是源服务器),两者都有一些批处理逻辑来检查用户名,并且一个只是“@ECHO OFF”并且没有任何变化,我仍然得到错误。我检查了 repo hooks 文件夹和 VisualSvn 服务器创建 .cmd 文件,所以我尝试复制没有扩展名的文件,这是 *nix 约定,仍然没有改变。

有任何想法吗?

4

2 回答 2

1

pre revision property change hook在目标服务器上应该返回零。例如:

出口 0

于 2012-07-19T07:45:47.193 回答
0

在 VisualSVN Server 中创建 repo 时,我经常选中“是的,请创建标签、分支和主干”复选框,这完全是 svnsync。确保您不选中该框。尝试在 VisualSVN Server 中创建一个新的存储库,设置钩子(是的,在目标服务器中),然后推送 go。我通常也会删除,--non-interactive因为我喜欢观看正在发生的事情。 http://journal.paul.querna.org/articles/2006/09/14/using-svnsync/是我经常使用的教程,虽然它看起来并不比你的链接好/差。

于 2012-05-08T19:13:53.987 回答