changeset 2961:5bb65c3945a3

localrepo.status: detect clean files even when the mtime has changed
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sun, 20 Aug 2006 00:44:54 -0300
parents 61afc32c1a49
children 882e703eaa94
files mercurial/localrepo.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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