mercurial/localrepo.py
changeset 4161 939de0d20a67
parent 4160 b4bd2f3ea347
child 4164 fe41d9a186ab
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)