# HG changeset patch # User Gregory Szorc # Date 1549999647 28800 # 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 -r ec7bba81ebf4 -r f63ba0b9d06f mercurial/revlog.py --- a/mercurial/revlog.py Sun Feb 10 22:41:51 2019 -0800 +++ b/mercurial/revlog.py Tue Feb 12 11:27:27 2019 -0800 @@ -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)