comparison mercurial/localrepo.py @ 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 fe41d9a186ab
comparison
equal deleted inserted replaced
4160:b4bd2f3ea347 4161:939de0d20a67
919 919
920 # are we comparing working dir against its parent? 920 # are we comparing working dir against its parent?
921 if compareworking: 921 if compareworking:
922 if lookup: 922 if lookup:
923 # do a full compare of any files that might have changed 923 # do a full compare of any files that might have changed
924 mf2 = mfmatches(self.dirstate.parents()[0]) 924 mnode = self.changelog.read(self.dirstate.parents()[0])[0]
925 getnode = lambda fn: mf2.get(fn, nullid) 925 getnode = lambda fn: (self.manifest.find(mnode, fn)[0] or
926 nullid)
926 for f in lookup: 927 for f in lookup:
927 if fcmp(f, getnode): 928 if fcmp(f, getnode):
928 modified.append(f) 929 modified.append(f)
929 else: 930 else:
930 clean.append(f) 931 clean.append(f)