# HG changeset patch # User Gregory Szorc # Date 2019-11-05 05:17:34 # Node ID a0916e8819f6e8afc7e3ac966723811ae4057d44 # Parent acdd4f28f6a3d6114c19b7ef4e7387899312f14b localrepo: use str for lookup in vars() vars() returns a dict of str. So always use a native str for the key lookup. Differential Revision: https://phab.mercurial-scm.org/D7227 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1417,7 +1417,7 @@ class localrepository(object): def _refreshchangelog(self): """make sure the in memory changelog match the on-disk one""" - if b'changelog' in vars(self) and self.currenttransaction() is None: + if 'changelog' in vars(self) and self.currenttransaction() is None: del self.changelog @property