Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial suddenly thinks all files have changed - waiting for lock on working directory

Tags:

mercurial

I've been using Mercurial v 1.1 for several months to version documents and other files. Yesterday it suddenly failed with the message:

waiting for lock on working directory

This happens in all projects I have under .hg control. Mercurial also thinks that all files in all projects have changed.

There is no .hg/store/lock file in the project it says it is waiting on the lock for.

The only thing that could have caused this is that Windows installed security patch on my computer overnight.

Has anyone else seen this with Mercurial?

like image 697
Dean Schulze Avatar asked Aug 21 '09 15:08

Dean Schulze


2 Answers

I've had success by deleting that file .hg/wlock entirely if it exists, then everything is back to normal. If you are worried about losing something, just make a copy

like image 137
Marcus Shockley Avatar answered Sep 30 '22 04:09

Marcus Shockley


For working directory, the lock is .hg/wlock. Does the file exists? For rebuilding the dirstate (beware it won't restore changes like adds/remove/renames/copies), you can use hg debugrebuildstate.

like image 23
tonfa Avatar answered Sep 30 '22 02:09

tonfa