开发者

Cannot verify lock on path

When I want to delete some f开发者_高级运维iles, it happens to show me the error below:

Commit failed (details follow):

Cannot verify lock on path

'the file name...';

no matching lock-token available

If you want to break the lock, use the 'Check For Modifications' dialog.

Please help me to solve it.


At least one of the files is locked. As the error tells you, use the "Check for Modifications" dialog, click on the "check repository" button and then find the files which have a lock on them. Then either remove, break of steal that lock.


  • For client-side command line approach, you can run

    svn unlock --force problematic.file.name

  • An administrator who has local access to the repositories could run

    svnadmin unlock

Hope this helps.


What command were you using to delete the files? Is this a local command or a remote command in Subversion?

$ svn rm file   #Local mode

$ svn http://svnhost/svn/project/trunk/file   #Remote mode

If you were deleting files in local mode, are they read-only? If so, you'll have to determine what made them read-only. Is there a lock on them? See the Red Bean book chapter on locks.

You were using a Subversion command. Right?


if you are in eclipse , go to team, click lock, then there is check box for (steal lock) click it and retry with check it , then it should work for you

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜