Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 4910:fd96bc61a18b
use context for part of localrepo status
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 21 Jul 2007 16:02:09 -0500 |
parents | 30847b8af7ca |
children | 312c845edef5 |
comparison
equal
deleted
inserted
replaced
4909:1fd7a99d98f6 | 4910:fd96bc61a18b |
---|---|
885 | 885 |
886 # are we comparing working dir against its parent? | 886 # are we comparing working dir against its parent? |
887 if compareworking: | 887 if compareworking: |
888 if lookup: | 888 if lookup: |
889 # do a full compare of any files that might have changed | 889 # do a full compare of any files that might have changed |
890 mnode = self.changelog.read(self.dirstate.parents()[0])[0] | 890 ctx = self.changectx() |
891 getnode = lambda fn: (self.manifest.find(mnode, fn)[0] or | |
892 nullid) | |
893 for f in lookup: | 891 for f in lookup: |
894 if fcmp(f, getnode): | 892 if f not in ctx or ctx[f].cmp(self.wread(f)): |
895 modified.append(f) | 893 modified.append(f) |
896 else: | 894 else: |
897 if list_clean: | 895 if list_clean: |
898 clean.append(f) | 896 clean.append(f) |
899 if not wlock and not mywlock: | 897 if not wlock and not mywlock: |