# HG changeset patch # User Gregory Szorc # Date 2019-02-12 19:27:27 # Node ID f63ba0b9d06f6fb24328bf78c24721f0f4eba648 # Parent ec7bba81ebf4fb795d95589f6bd0574fa7ae923a revlog: use iterbytestr() Otherwise we iterate over integers in Python 3 and the character compare fails. Differential Revision: https://phab.mercurial-scm.org/D5947 diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1340,7 +1340,7 @@ class revlog(object): 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)