使用svnsync
$ svnsync --non-interactive sync ${REPO}进程中止后,重试时出现以下错误消息
Failed to get lock on destination repos, currently held by 'svn.test.com:0e4e0d98-631d-0410-9a00-9330a90920b3'
...
Failed to get lock on destination repos, currently held by 'svn.test.com:0e4e0d98-631d-0410-9a00-9330a90920b3'
svnsync: Couldn't get lock on destination repos after 10 attempts 有没有办法解决这个问题?
发布于 2013-04-17 15:02:30
实际上,svnsync (从v1.7开始)中内置了一些可以“窃取”锁的功能。
svnsync help sync显示:
--steal-lock : Steal locks as necessary. Use, with caution,
if your mirror repository contains stale locks
and is not being concurrently accessed by another
svnsync instance.当我运行它的时候,我得到了一个很好的:
Stole lock previously held by '[hostname]'所以,你根本不需要propdel这个东西
发布于 2010-11-02 20:37:34
您必须通过远程站点上的svn命令行删除远程存储库上的lock属性,该属性是在同步过程中因故障而遗留下来的。
svn propdel --revprop -r0 svn:sync-lock file:///path/to/the/repository发布于 2011-12-23 14:48:01
从技术上讲,您需要删除属性的是目标存储库,而不一定是远程存储库,因为目标可以是本地的。因此,对于这个特定的问题:
svn propdel --revprop -r0 svn:sync-lock ${REPO}https://stackoverflow.com/questions/4077601
复制相似问题