From patchwork Tue Nov 5 16:09:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7227: localrepo: use str for lookup in vars() From: phabricator X-Patchwork-Id: 42754 Message-Id: <9b24957c15bd800ab69eddb196bed7ca@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Tue, 5 Nov 2019 16:09:18 +0000 Closed by commit rHGa0916e8819f6: localrepo: use str for lookup in vars() (authored by indygreg). This revision was automatically updated to reflect the committed changes. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7227?vs=17549&id=17555 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7227/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7227 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS To: indygreg, #hg-reviewers, pulkit Cc: mercurial-devel diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -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