# HG changeset patch # User Gregory Szorc # Date 1518406013 28800 # Node ID 8eb13f5d5d3f294b82b5e05821c275d81f8059a8 # Parent 7db243288afb73fd90abca9812515ec989f5b0d4 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 diff -r 7db243288afb -r 8eb13f5d5d3f 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]