# HG changeset patch # User Matt Mackall # Date 1300890862 18000 # Node ID ce341da8537c40442fd0666b3158cc6abb2140e1 # Parent 16118b4859a1c9f3149192b2c7a1fb869592a6cf dirstate: flush _lastnormal when we see newer filesystem times diff -r 16118b4859a1 -r ce341da8537c mercurial/dirstate.py --- a/mercurial/dirstate.py Wed Mar 23 09:43:34 2011 +0100 +++ b/mercurial/dirstate.py Wed Mar 23 09:34:22 2011 -0500 @@ -50,6 +50,7 @@ self._dirty = False self._dirtypl = False self._lastnormal = set() # files believed to be normal + self._lastnormaltime = None self._ui = ui @propertycache @@ -290,6 +291,9 @@ # process modifies it without changing its size before the clock # ticks over to the next second, then it won't be clean anymore. # So make sure that status() will look harder at it. + if self._lastnormaltime < s.st_mtime: + self._lastnormaltime = s.st_mtime + self._lastnormal = set() self._lastnormal.add(f) def normallookup(self, f):