D1719: debug: remove an 'if ui.debug()' that is not doing anything
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Thu Dec 21 23:03:10 UTC 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3bb1a647ab42: debug: remove an 'if ui.debug()' that is not doing anything (authored by spectral, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1719?vs=4535&id=4573
REVISION DETAIL
https://phab.mercurial-scm.org/D1719
AFFECTED FILES
mercurial/debugcommands.py
CHANGE DETAILS
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -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))
To: spectral, #hg-reviewers, krbullock
Cc: krbullock, quark, mercurial-devel
More information about the Mercurial-devel
mailing list