# HG changeset patch # User Alexis S. L. Carvalho # Date 1156045494 10800 # Node ID 5bb65c3945a34e4ceaec422bff73e80fbbd96b7e # Parent 61afc32c1a495588442d3c810f3ab6eac15c4778 localrepo.status: detect clean files even when the mtime has changed diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -710,8 +710,10 @@ class localrepository(repo.repository): 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