使用 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

有没有办法解决这个问题?

最佳答案

实际上,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 东西

关于svnsync - 无法锁定目标存储库,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4077601/

10-13 09:32