# HG changeset patch # User Matt Mackall # Date 1185051729 18000 # Node ID fd96bc61a18b94cec4b7e59a17093a06ef57cb18 # Parent 1fd7a99d98f60ef5b7c972392af3bb90cdb7fc8c use context for part of localrepo status diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -887,11 +887,9 @@ class localrepository(repo.repository): if compareworking: if lookup: # do a full compare of any files that might have changed - mnode = self.changelog.read(self.dirstate.parents()[0])[0] - getnode = lambda fn: (self.manifest.find(mnode, fn)[0] or - nullid) + ctx = self.changectx() for f in lookup: - if fcmp(f, getnode): + if f not in ctx or ctx[f].cmp(self.wread(f)): modified.append(f) else: if list_clean: