Mercurial > hg
diff mercurial/debugcommands.py @ 35465: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 | 786289423e97 |
children | f1c54d003327 |
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))