修复 Subversion 用户不锁定路径错误 [英] Fixing the Subversion user does not own lock on path error

查看:50
本文介绍了修复 Subversion 用户不锁定路径错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试删除我的 Subversion 存储库中的文件夹.当我尝试提交此更改时,我的 TortoiseSVN 客户端给了我以下错误消息:

I am trying to delete a folder within my Subversion repository. My TortoiseSVN client gives me the following error message when I try to commit this change:

提交失败(详情如下):

Commit Failed (details follow):

用户 {username} 没有对 {path} 的锁定

User {username} does not own lock on {path}

页面 {filename} 当前被 {another user} 锁定

page {filename} currently locked by {another user}

如果您想解除锁定,请使用检查修改"对话框.

If you want to break the lock, use the 'Check for modifications' dialog.

我确实想解除锁定并删除该文件夹,但从检查修改"文件夹中看不到明显的方法.有人有什么建议吗?

I do want to break the lock and delete the folder, but I can't see an obvious way to do it from the Check for Modifications folder. Does anyone have any suggestions?

推荐答案

从 Pedro 的回答中,我能够弄清楚如何在 Tortoise SVN 中执行此操作.您可以在 SVN 论坛上的这个步骤中找到完整的说明:http://www.svnforum.org/threads/39826-Commit-problem-User-does-not-own-lock-on-path

From Pedro's answer, I was able to figure out how to do this from within Tortoise SVN. You can find the full instructions in this tread on the SVN Forum: http://www.svnforum.org/threads/39826-Commit-problem-User-does-not-own-lock-on-path

简短版本是:

  1. 打开检查修改"对话框
  2. 单击检查存储库"按钮
  3. 您现在应该会在锁定"列中看到持有锁定的用户的姓名(您可能需要向右滚动才能在列表中看到此列.)
  4. 右键单击带有锁的文件.您现在应该会在上下文菜单中看到 Break Lock 选项.

如果您有很多文件,您可以选择列表中的所有文件 (Ctrl-A) 并对所有文件应用 Break Lock,如下所述:如何在 Subversion 中递归释放锁?

If you have a lot of files, you can select all files in your list (Ctrl-A) and apply the Break Lock for everything, as described here: How can I release locks in Subversion recursively?

这篇关于修复 Subversion 用户不锁定路径错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆