diff -r 6915f6a40283 -r 3bb1a647ab42 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Thu Dec 21 21:35:20 2017 +0800 +++ b/mercurial/debugcommands.py Mon Dec 18 17:33:08 2017 -0800 @@ -2307,10 +2307,6 @@ cache = {} ctx2str = str node2str = short - if ui.debug(): - def ctx2str(ctx): - return ctx.hex() - node2str = hex for rev in scmutil.revrange(repo, revs): ctx = repo[rev] ui.write('%s\n'% ctx2str(ctx))