Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 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 | 8864aa96f1f6 |
children | be384a2052aa |
comparison
equal
deleted
inserted
replaced
43413:acdd4f28f6a3 | 43414:a0916e8819f6 |
---|---|
1415 self._refreshchangelog() | 1415 self._refreshchangelog() |
1416 return bookmarks.bmstore(self) | 1416 return bookmarks.bmstore(self) |
1417 | 1417 |
1418 def _refreshchangelog(self): | 1418 def _refreshchangelog(self): |
1419 """make sure the in memory changelog match the on-disk one""" | 1419 """make sure the in memory changelog match the on-disk one""" |
1420 if b'changelog' in vars(self) and self.currenttransaction() is None: | 1420 if 'changelog' in vars(self) and self.currenttransaction() is None: |
1421 del self.changelog | 1421 del self.changelog |
1422 | 1422 |
1423 @property | 1423 @property |
1424 def _activebookmark(self): | 1424 def _activebookmark(self): |
1425 return self._bookmarks.active | 1425 return self._bookmarks.active |