Patchwork D1719: debug: remove an 'if ui.debug()' that is not doing anything

login
register
mail settings
Submitter phabricator
Date Dec. 21, 2017, 11:03 p.m.
Message ID <7928a9dbcea9c00975453e9eb78bab3b@localhost.localdomain>
Download mbox | patch
Permalink /patch/26392/
State Not Applicable
Headers show

Comments

phabricator - Dec. 21, 2017, 11:03 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3bb1a647ab42: debug: remove an &#039;if ui.debug()&#039; 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




To: spectral, #hg-reviewers, krbullock
Cc: krbullock, quark, mercurial-devel

Patch

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))