Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 2961:5bb65c3945a3
localrepo.status: detect clean files even when the mtime has changed
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 20 Aug 2006 00:44:54 -0300 |
parents | 05257fd28591 |
children | 96d034d02d61 |
comparison
equal
deleted
inserted
replaced
2960:61afc32c1a49 | 2961:5bb65c3945a3 |
---|---|
708 # do a full compare of any files that might have changed | 708 # do a full compare of any files that might have changed |
709 mf2 = mfmatches(self.dirstate.parents()[0]) | 709 mf2 = mfmatches(self.dirstate.parents()[0]) |
710 for f in lookup: | 710 for f in lookup: |
711 if fcmp(f, mf2): | 711 if fcmp(f, mf2): |
712 modified.append(f) | 712 modified.append(f) |
713 elif wlock is not None: | 713 else: |
714 self.dirstate.update([f], "n") | 714 clean.append(f) |
715 if wlock is not None: | |
716 self.dirstate.update([f], "n") | |
715 else: | 717 else: |
716 # we are comparing working dir against non-parent | 718 # we are comparing working dir against non-parent |
717 # generate a pseudo-manifest for the working dir | 719 # generate a pseudo-manifest for the working dir |
718 mf2 = mfmatches(self.dirstate.parents()[0]) | 720 mf2 = mfmatches(self.dirstate.parents()[0]) |
719 for f in lookup + modified + added: | 721 for f in lookup + modified + added: |