py3: convert context to bytes instead of str
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 11 Feb 2018 19:26:53 -0800
changeset 36123 8eb13f5d5d3f
parent 36122 7db243288afb
child 36124 976a9fd706ed
py3: convert context to bytes instead of str This yields identical behavior on Python 2 and 3. Differential Revision: https://phab.mercurial-scm.org/D2174
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Sun Feb 11 19:24:27 2018 -0800
+++ b/mercurial/debugcommands.py	Sun Feb 11 19:26:53 2018 -0800
@@ -2356,7 +2356,7 @@
     """
     # passed to successorssets caching computation from one call to another
     cache = {}
-    ctx2str = str
+    ctx2str = bytes
     node2str = short
     for rev in scmutil.revrange(repo, revs):
         ctx = repo[rev]