<p>Got a bluescreen in windows while cloning a mercurial repository.</p>

<p>After reboot, I now get this message for almost all hg commands:</p>

<pre>
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!
</pre>

<p>Google is no help.</p>

<p>Any tips?</p>

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).