debug: remove an 'if ui.debug()' that is not doing anything
ui.debug() does not return a value.
Differential Revision: https://phab.mercurial-scm.org/D1719
--- 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))