Spurious 'M' status (was: Re: Mozilla: hg as a collaboration tool)

Jesse Glick jesse.glick at sun.com
Thu Feb 7 10:59:24 CST 2008


Dirkjan Ochtman wrote:
> hg status [can on occasion show] files that don't show up in hg diff
> (because just their x bit changed, for example). In these cases, it
> either helps to understand the underlying model or there are simple
> fixes ([diff] git = true or some such)

Somewhat off-topic, I have run into the situation - which of course I 
have no idea how to reproduce - that 'hg stat' shows some files as 
modified that I certainly did not intentionally edit, yet even 'hg di 
-g' shows nothing. 'hg up -C' corrects the problem but 'hg revert 
<file>' does not. Out of tens of thousands of files in the repo, just a 
dozen or so are affected, and look to be selected quite at random. I 
think I have only seen this on Windows.

I don't know if it is a Mercurial bug, but when it happened I had no 
obvious way to ask Mercurial: "what exactly makes you think this file is 
modified?" Is there a simple way to get a useful diagnosis when this 
happens?



More information about the Mercurial mailing list