D1898: localrepo: consistently use native str when __dict__ is involved
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Jan 18 13:39:32 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1898
AFFECTED FILES
mercurial/localrepo.py
CHANGE DETAILS
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1565,7 +1565,8 @@
def _refreshfilecachestats(self, tr):
"""Reload stats of cached files so that they are flagged as valid"""
for k, ce in self._filecache.items():
- if k == 'dirstate' or k not in self.__dict__:
+ k = pycompat.sysstr(k)
+ if k == r'dirstate' or k not in self.__dict__:
continue
ce.refresh()
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list