httppeer: make a message translatable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Thu, 26 May 2016 01:57:34 +0900
changeset 29241 269f7ea08983
parent 29240 48afcaadf70e
child 29242 4d075bf28702
httppeer: make a message translatable This message has been overlooked by check-code, because it starts with non-alphabet character ('('). Making this message translatable seems reasonable, because exception message below in same function is already translatable - 'cannot create new http repository' This is also a part of preparation for making "missing _() in ui message" detection of check-code more exact.
mercurial/httppeer.py
--- a/mercurial/httppeer.py	Thu May 26 01:57:34 2016 +0900
+++ b/mercurial/httppeer.py	Thu May 26 01:57:34 2016 +0900
@@ -302,7 +302,7 @@
     except error.RepoError as httpexception:
         try:
             r = statichttprepo.instance(ui, "static-" + path, create)
-            ui.note('(falling back to static-http)\n')
+            ui.note(_('(falling back to static-http)\n'))
             return r
         except error.RepoError:
             raise httpexception # use the original http RepoError instead