changeset 41689:f63ba0b9d06f

revlog: use iterbytestr() Otherwise we iterate over integers in Python 3 and the character compare fails. Differential Revision: https://phab.mercurial-scm.org/D5947
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 12 Feb 2019 11:27:27 -0800
parents ec7bba81ebf4
children ea72da71ad69
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)