localrepo.status: detect clean files even when the mtime has changed
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sun, 20 Aug 2006 00:44:54 -0300
changeset 2961 5bb65c3945a3
parent 2960 61afc32c1a49
child 2962 882e703eaa94
localrepo.status: detect clean files even when the mtime has changed
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Sun Aug 20 00:44:53 2006 -0300
+++ b/mercurial/localrepo.py	Sun Aug 20 00:44:54 2006 -0300
@@ -710,8 +710,10 @@
                     for f in lookup:
                         if fcmp(f, mf2):
                             modified.append(f)
-                        elif wlock is not None:
-                            self.dirstate.update([f], "n")
+                        else:
+                            clean.append(f)
+                            if wlock is not None:
+                                self.dirstate.update([f], "n")
             else:
                 # we are comparing working dir against non-parent
                 # generate a pseudo-manifest for the working dir