how to force recalculation of sha1 for versioned file?

Alexander Belchenko bialix at ukr.net
Mon Feb 11 15:34:21 GMT 2008


Aaron Bentley пишет:
> Alexander Belchenko wrote:
>> Unfortunately `bzr st` says that nothing changed. Because mount don't
>> change
>> timestamp nor size of this file.
>>
>> It seems like this trick is fairly new, because back in November 2007
>> I'm working with the same branch and don't have such problems.
> 
> No, this "trick" is not new.  Bazaar has used the mtime as an indicator
> of whether a file has changed since bzr-0.0.5 in July 2005.

So, let's assuming I have false memory.

>> I could understand this change should speed up status operation, but
>> it seems like in my case bzr does the wrong thing.
> 
> If your disk image is being modified without having its mtime updated, I
> would argue that's the wrong thing.  The mtime should always be updated
> when the contents of a file change.

That's why I'm prefer scons over make: by default it don't look at mtime
but only on md5 sum.

Thank you. I will start to teach myself run `touch firmware.bin` after each
`umount`.



More information about the bazaar mailing list