changeset 4161:939de0d20a67

localrepo.status: use manifest.find on "lookup" files
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Wed, 07 Mar 2007 15:26:00 -0300
parents b4bd2f3ea347
children b2d9e553cdc8
files mercurial/localrepo.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Mar 07 15:25:59 2007 -0300
+++ b/mercurial/localrepo.py	Wed Mar 07 15:26:00 2007 -0300
@@ -921,8 +921,9 @@
             if compareworking:
                 if lookup:
                     # do a full compare of any files that might have changed
-                    mf2 = mfmatches(self.dirstate.parents()[0])
-                    getnode = lambda fn: mf2.get(fn, nullid)
+                    mnode = self.changelog.read(self.dirstate.parents()[0])[0]
+                    getnode = lambda fn: (self.manifest.find(mnode, fn)[0] or
+                                          nullid)
                     for f in lookup:
                         if fcmp(f, getnode):
                             modified.append(f)