执行svn sync命令做svn同步时遇到Failed to get lock on destination repos, currently held by ...错误

手动执行命令时,报错:执行svn sync命令做svn同步时遇到Failed to get lock on destination repos, currently held by ...错误_第1张图片
发生以上情况的有两种情况:
1.有正在同步的进程未完成,lock未释放;
2.上一次同步的进程异常导致中断,lock未释放。
3.有svn冲突

SVN同步时,源库端会在目标库端加lock,成功同步后释放lock,但当SVN同步异常中断后,lock是不会自动释放的。这时在执行svn sync命令,就会出现如上问题;

解决方案:

执行:svn propdel svn:sync-lock --revprop -r 0 http://192.168.xx.xx/仓库(svn仓库地址)

将lock释放即可再次执行同步。

svn propdel svn:sync-lock --revprop -r 0 file:///www/svndata/test

你可能感兴趣的:(执行svn sync命令做svn同步时遇到Failed to get lock on destination repos, currently held by ...错误)