D5947: revlog: use iterbytestr()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Feb 12 19:27:57 UTC 2019
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise we iterate over integers in Python 3 and the
character compare fails.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5947
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1340,7 +1340,7 @@
return True
def maybewdir(prefix):
- return all(c == 'f' for c in prefix)
+ return all(c == 'f' for c in pycompat.iterbytestr(prefix))
hexnode = hex(node)
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list