absorb: use ui.debug() instead of open-coding it
authorAugie Fackler <augie@google.com>
Wed, 01 Aug 2018 18:29:57 -0400
changeset 38921 e930df0f9a55
parent 38920 a5c8c5476339
child 38922 ec0697f4f9c9
absorb: use ui.debug() instead of open-coding it Differential Revision: https://phab.mercurial-scm.org/D4046
hgext/absorb.py
--- a/hgext/absorb.py	Wed Aug 01 18:24:43 2018 -0400
+++ b/hgext/absorb.py	Wed Aug 01 18:29:57 2018 -0400
@@ -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