Patchwork D7227: localrepo: use str for lookup in vars()

login
register
mail settings
Submitter phabricator
Date Nov. 5, 2019, 4:09 p.m.
Message ID <9b24957c15bd800ab69eddb196bed7ca@localhost.localdomain>
Download mbox | patch
Permalink /patch/42754/
State Not Applicable
Headers show

Comments

phabricator - Nov. 5, 2019, 4:09 p.m.
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

Patch

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