Patchwork D6338: monotone: fix a bogus _() wrapper that was caught when formatting code

login
register
mail settings
Submitter phabricator
Date May 4, 2019, 2:37 p.m.
Message ID <differential-rev-PHID-DREV-yly3n7qrqwgby6otjj6t-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/39944/
State Superseded
Headers show

Comments

phabricator - May 4, 2019, 2:37 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  There was a spurious space after `debug`, which hid the _() inside
  ui.debug() from check-code. Sigh.
  
  While here, wrap things more concisely.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/convert/monotone.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/convert/monotone.py b/hgext/convert/monotone.py
--- a/hgext/convert/monotone.py
+++ b/hgext/convert/monotone.py
@@ -284,9 +284,9 @@ 
                     # d2 => d3
                     ignoremove[tofile] = 1
             for tofile, fromfile in renamed.items():
-                self.ui.debug (_("copying file in renamed directory "
-                                 "from '%s' to '%s'")
-                               % (fromfile, tofile), '\n')
+                self.ui.debug(
+                    "copying file in renamed directory from '%s' to '%s'"
+                    % (fromfile, tofile), '\n')
                 files[tofile] = rev
                 copies[tofile] = fromfile
             for fromfile in renamed.values():
@@ -370,4 +370,3 @@ 
             self.mtnwritefp = None
             self.mtnreadfp.close()
             self.mtnreadfp = None
-