# HG changeset patch # User Kyle Lippincott # Date 2017-12-19 01:33:08 # Node ID 3bb1a647ab42ff71f40793118aae547e721d64d0 # Parent 6915f6a4028363a0f8a64f93e088fd5189d6cd0c 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 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -2307,10 +2307,6 @@ def debugsuccessorssets(ui, repo, *revs, 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))