mercurial/dirstate.py
changeset 13735 ce341da8537c
parent 13728 15d1db2abfcb
child 13743 2d53cefb44e3
--- 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):