D1893: context: use native string when peeking in __dict__

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Feb 1 20:39:48 UTC 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf45076c52e41: context: use native string when peeking in __dict__ (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1893?vs=4949&id=5063

REVISION DETAIL
  https://phab.mercurial-scm.org/D1893

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1051,7 +1051,7 @@
             # 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



To: durin42, #hg-reviewers, pulkit, indygreg
Cc: pulkit, mercurial-devel


More information about the Mercurial-devel mailing list