Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial stuck "waiting for lock"

Tags:

mercurial

Got a bluescreen in windows while cloning a mercurial repository.

After reboot, I now get this message for almost all hg commands:

 c:\src\>hg commit waiting for lock on repository c:\src\McVrsServer held by '\x00\x00\x00\x00\x00\ x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' interrupted! 

Google is no help.

Any tips?

like image 580
jm. Avatar asked Aug 15 '08 23:08

jm.


1 Answers

When "waiting for lock on repository", delete the repository file: .hg/wlock (or it may be in .hg/store/lock)

When deleting the lock file, you must make sure nothing else is accessing the repository. (If the lock is a string of zeros or blank, this is almost certainly true).

like image 83
jm. Avatar answered Sep 30 '22 22:09

jm.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!