# HG changeset patch # User Augie Fackler # Date 2018-01-18 02:43:46 # Node ID f61461d2bfd8fba9ea1112a6169642110e9493da # Parent 87b085a4f9d117553ba43d3c15fa792346565602 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 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1051,7 +1051,7 @@ class basefilectx(object): # renamed filectx won't have a filelog yet, so set it # from the cache to save time for p in pl: - if not '_filelog' in p.__dict__: + if not r'_filelog' in p.__dict__: p._filelog = getlog(p.path()) return pl