changeset 43414:a0916e8819f6 stable

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 04 Nov 2019 21:17:34 -0800
parents acdd4f28f6a3
children a8454e846736
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Mon Nov 04 23:44:10 2019 -0800
+++ b/mercurial/localrepo.py	Mon Nov 04 21:17:34 2019 -0800
@@ -1417,7 +1417,7 @@
 
     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