Difference on a file ?!
Vladimir Marek
Vladimir.Marek at Sun.COM
Fri Nov 23 13:01:18 UTC 2007
Hi,
I'm currently looking at something similar; how is mercurial picking up
that file changed. From hg book:
================================= snip =================================
4.5.5 Other contents of the dirstate
[...]
When Mercurial is checking the states of files in the working directory,
it first checks a file’s modification time. If that has not changed, the
file must not have been modified. If the file’s size has changed, the
file must have been modified. If the modification time has changed, but
the size has not, only then does Mercurial need to read the actual
contents of the file to see if they’ve changed.
[...]
========================================================================
Changing permission does not change mtime (at least not on Solaris).
Also mtime of the directory does not seem to be changed. So I guess that
this paragraph is not exact, since size and mtime was not changed and
still hg seems difference.
Also you may try to run 'hg diff --git' which reports exactly how the
permissions changed.
Another curious user :)
--
Vlad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20071123/644d13fe/attachment-0001.asc>
More information about the Mercurial
mailing list