VisualSvn服务器svnsync同步锁定错误
我在 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 约定),但仍然没有任何变化。
有什么想法吗?
I've a primary svn server on linux and i'm making a read-only synced version using VisualSvn Server.
I'm following the tutorials on
http://svnbook.red-bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.replication
and
http://blogs.geniuscode.net/RyanDHatch/?p=9
but I'm still getting the error
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
I've used both the svn admin console to add in appropriate hook on the target server (I'm guessing its the target server that requires this hook, not the source server), both one with some batch logic to check user names, and one that is just "@ECHO OFF" and nothing changes, I still get the error. I've checked the repo hooks folder and VisualSvn server creates .cmd files, so I tried copying the files without extensions which is the *nix convention, still no change.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目标服务器上的
预修订属性更改挂钩
应返回零。例如:You
pre revision property change hook
on target server should return zero. For example:在 VisualSVN Server 中创建存储库时,我经常选中“是的,请创建标签、分支和主干”复选框,这完全破坏了 svnsync。确保您没有选中该框。尝试在 VisualSVN Server 中创建一个新存储库,设置挂钩(是的,在目标服务器中),然后推送 go。我通常还会删除
--non-interactive
因为我喜欢观察正在发生的事情。 http://journal.paul.querna.org/articles/ 2006/09/14/using-svnsync/ 是我通常使用的教程,尽管它看起来并不比你的链接更好/更差。When creating the repo in VisualSVN Server, I've frequently checked the "yes, please create tags, branches, and trunk" checkbox, which totally fries svnsync. Ensure you don't check that box. Try creating a new repository in VisualSVN Server, setting the hook (yes, in the target server), and then pushing go. I also typically remove the
--non-interactive
as I like to watch what is happening. http://journal.paul.querna.org/articles/2006/09/14/using-svnsync/ is the tutorial I usually use, though it doesn't seem any better / worse than your links.