changeset 35469:3bb1a647ab42

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
author Kyle Lippincott <spectral@google.com>
date Mon, 18 Dec 2017 17:33:08 -0800
parents 6915f6a40283
children 7906354cbc68
files mercurial/debugcommands.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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))