Patchwork D4046: absorb: use ui.debug() instead of open-coding it

login
register
mail settings
Submitter phabricator
Date Aug. 6, 2018, 3:54 p.m.
Message ID <7b9b574c52e97b4ecee47fd8ee3bc5d0@localhost.localdomain>
Download mbox | patch
Permalink /patch/33338/
State Not Applicable
Headers show

Comments

phabricator - Aug. 6, 2018, 3:54 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe930df0f9a55: absorb: use ui.debug() instead of open-coding it (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4046?vs=9763&id=9990

REVISION DETAIL
  https://phab.mercurial-scm.org/D4046

AFFECTED FILES
  hgext/absorb.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/absorb.py b/hgext/absorb.py
--- a/hgext/absorb.py
+++ b/hgext/absorb.py
@@ -622,8 +622,7 @@ 
         # sorting is necessary to eliminate ambiguity for the "double move"
         # case: "hg cp A B; hg cp A C; hg rm A", then only "B" can affect "A".
         for path in sorted(interestingpaths):
-            if self.ui.debugflag:
-                self.ui.write(_('calculating fixups for %s\n') % path)
+            self.ui.debug('calculating fixups for %s\n' % path)
             targetfctx = targetctx[path]
             fctxs, ctx2fctx = getfilestack(self.stack, path, seenfctxs)
             # ignore symbolic links or binary, or unchanged files