Patchwork D5947: revlog: use iterbytestr()

login
register
mail settings
Submitter phabricator
Date Feb. 13, 2019, 12:50 p.m.
Message ID <ac5d67f484720c67d62d46a454e6f4c2@localhost.localdomain>
Download mbox | patch
Permalink /patch/38713/
State Not Applicable
Headers show

Comments

phabricator - Feb. 13, 2019, 12:50 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG389ad992d953: revlog: use iterbytestr() (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5947?vs=14049&id=14064

REVISION DETAIL
  https://phab.mercurial-scm.org/D5947

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

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)