Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 35874:f61461d2bfd8
context: use native string when peeking in __dict__
# skip-blame because we're just adding a prefix on a string constant
Differential Revision: https://phab.mercurial-scm.org/D1893
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 17 Jan 2018 21:43:46 -0500 |
parents | 2a7e777c9eed |
children | 44bc37d20271 |
comparison
equal
deleted
inserted
replaced
35873:87b085a4f9d1 | 35874:f61461d2bfd8 |
---|---|
1049 pl = [p for p in pl if p.path() == f.path()] | 1049 pl = [p for p in pl if p.path() == f.path()] |
1050 | 1050 |
1051 # renamed filectx won't have a filelog yet, so set it | 1051 # renamed filectx won't have a filelog yet, so set it |
1052 # from the cache to save time | 1052 # from the cache to save time |
1053 for p in pl: | 1053 for p in pl: |
1054 if not '_filelog' in p.__dict__: | 1054 if not r'_filelog' in p.__dict__: |
1055 p._filelog = getlog(p.path()) | 1055 p._filelog = getlog(p.path()) |
1056 | 1056 |
1057 return pl | 1057 return pl |
1058 | 1058 |
1059 # use linkrev to find the first changeset where self appeared | 1059 # use linkrev to find the first changeset where self appeared |