4

When I want to delete some files, 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.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
mudoot
  • 51
  • 1
  • 2
  • 5

4 Answers4

7

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.

Stefan
  • 43,293
  • 10
  • 75
  • 117
  • so I did it , but nothing happened after check repository,so what can I do then? – mudoot May 20 '11 at 04:06
  • worked for me! I swear, diff day, different problem. TG for S/O! – toddmo Aug 15 '12 at 22:59
  • I have a similar problem. No files are locked though. At least according to the "Check for Modifications" dialog, even with "check repository" button pressed. – facetus Apr 17 '13 at 01:42
1

Hope this helps.

bahrep
  • 29,961
  • 12
  • 103
  • 150
KIR
  • 5,614
  • 1
  • 31
  • 23
0

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?

bahrep
  • 29,961
  • 12
  • 103
  • 150
David W.
  • 105,218
  • 39
  • 216
  • 337
  • I checked for lock but find nothing about it. I use windows svn client "TortoiseSVN" to delete the files on remote server. Now I dump the repo and except these files. But it's not the best solution, please give me a hand,thanks. – mudoot May 20 '11 at 04:11
  • 1
    Still trying to understand what you did: You directly deleted the files from the repository and didn't delete them from the local working directory. Right? What do you mean you "dump the repo", but these files? Did you do a `svnadmin dump`? Can you do a `svnadmin lslocks` on the repository? – David W. May 20 '11 at 11:37
  • I deleted the files from local but cannot commit then. And I did the `svnadmin dump`. `svnadmin lslocks` I do it which gave me the lock . So what should I do next? – mudoot May 27 '11 at 03:32
-1

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

mouli
  • 1