Patchwork D6994: ui: define (write|status|warn|note)noi18n aliases

login
register
mail settings
Submitter phabricator
Date Oct. 6, 2019, 4:06 p.m.
Message ID <f524b722a6746151fff831a8e7a1cf67@localhost.localdomain>
Download mbox | patch
Permalink /patch/42030/
State Not Applicable
Headers show

Comments

phabricator - Oct. 6, 2019, 4:06 p.m.
Closed by commit rHG5209fc94b982: ui: define (write|status|warn|note)noi18n aliases (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6994?vs=16886&id=16906

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6994/new/

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

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -1701,6 +1701,12 @@ 
             self._writemsg(self._fmsgout, type=b'debug', *msg, **opts)
             self.log(b'debug', b'%s', b''.join(msg))
 
+    # Aliases to defeat check-code.
+    statusnoi18n = status
+    notenoi18n = note
+    warnnoi18n = warn
+    writenoi18n = write
+
     def edit(
         self,
         text,