I have a repository where:
> hg st
shows that my working directory has some uncommitted changes, while
> hg diff
> hg diff -g
> hg diff --git
display nothing.
I read here: 4.10. hg status shows changed files but hg diff doesn't! the following:
hg status reports when file contents or flags have changed relative to either parent. hg diff only reports changed contents relative to the first parent. You can see flag information with the --git option to hg diff and deltas relative to the other parent with -r.
However, if I run hg parents
it shows only one parent (the tip). As I mention above, I have also tried hg diff --git
and it still displays nothing.
Note:
- The above is on Mercurial version 2.0.1
hg status
only showsM
next to a regular file.hg diff
andhg diff -g
print nothing- The filesystem is NFS.
hg parents
prints only one parent
hg diff --git
like said in the documentation you posted ? – Regorgehg status
checks also attributes, and things thathg diff
does not show, is there a way to check what is exactly that has changed whenhg st
shows anM
next to the file?. – Somatisthg status
shows modified files whilehg diff --git
shows nothing. File permissions are the same. One parent, freshly updated directory. – Northcliffehg debugrebuilddirstate
which will re-scan and get rid of any fake "m" flags... – Haematinic