Daylight saving time makes hg slow until 'hg stat' is done (windows bug?)

Matt Mackall mpm at selenic.com
Wed Mar 28 10:46:02 CDT 2007


On Wed, Mar 28, 2007 at 09:38:46AM +0400, Andrei Vermel wrote:
> Just noticed something curious.
> Right after the daylight saving time adjustment all hg operations became 
> very noticably slower. On my repo of 30,000+ files say 'hg update' of 1 
> changed file took over 10 min instead of usual 2 sec.
> 
> I believe this is because timestamps of checked out files somehow got out 
> of sync with the ones recorded in .hg.
> The speed only got back to norm after I did 'hg stat.
> I wonder why other commands like 'hg update', which effectively do 'hg 
> stat' inside do not update the recordered timestamps.

Ahh, Windows..

Some (if not all) Windows filesystems store the date in localtime.
Mercurial stores dates in UTC, including for the dirstate. Somewhere
in converting between the two things got out of sync and hg visited
each file just to be sure.

Not sure why hg update didn't record the new timestamps though.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list