gpt4 book ai didi

svnsync - 无法锁定目标存储库

转载 作者:行者123 更新时间:2023-12-03 05:58:26 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com