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

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

Comments

phabricator - Oct. 6, 2019, 3:01 p.m.
durin42 edited the summary of this revision.
durin42 retitled this revision from "ui: define a writenoi18n alias" to "ui: define (write|status|warn|note)noi18n aliases".
durin42 updated this revision to Diff 16886.

REPOSITORY
  rHG Mercurial

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

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