[issue367] 'nothing changed' even after touching a file

Michael Paesold mpaesold at gmx.at
Mon Sep 11 05:41:44 UTC 2006


John D. Mitchell wrote:
> On 9/10/06, Christian Ebert <blacktrash at gmx.net> wrote:
>> * John D. Mitchell on Sunday, September 10, 2006 at 16:41:08 -0700:
> [...]
>> > Can you explain why?  If the modified time is, ahem, modified then
>> > that's signaling that something changed.
>>
>> 1) checkout file
>> 2) edit file
>> 3) write file
>> 4) hg diff
>> 5) don't like it
>> 6) undo all changes in editor
>> 7) write file
>>
>> Now mtime has changed, but not the content.
>>
>> Maybe I'm misunderstanding something, but if hg then insisted I
>> changed the file, hg would be unusable for me, however rational
>> the rationale for that behaviour ;)
> 
> Excellent example!
> 
> It should tell you that they are different because you changed them.
> In terms of communicating your intent, you should be doing an hg
> revert in that case, IMHO.

I have never ever heard of an VCS that behaves that way, but well, I 
have only used about 5, so there are much more which I didn't try. :-)

Can you give an example of a version control system that does what you 
request?

Best Regards
Michael Paesold




More information about the Mercurial mailing list