Mercurial > hg
comparison mercurial/httppeer.py @ 29241:269f7ea08983
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.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Thu, 26 May 2016 01:57:34 +0900 |
parents | 032c4c2f802a |
children | 0c741fd6158a |
comparison
equal
deleted
inserted
replaced
29240:48afcaadf70e | 29241:269f7ea08983 |
---|---|
300 inst.between([(nullid, nullid)]) | 300 inst.between([(nullid, nullid)]) |
301 return inst | 301 return inst |
302 except error.RepoError as httpexception: | 302 except error.RepoError as httpexception: |
303 try: | 303 try: |
304 r = statichttprepo.instance(ui, "static-" + path, create) | 304 r = statichttprepo.instance(ui, "static-" + path, create) |
305 ui.note('(falling back to static-http)\n') | 305 ui.note(_('(falling back to static-http)\n')) |
306 return r | 306 return r |
307 except error.RepoError: | 307 except error.RepoError: |
308 raise httpexception # use the original http RepoError instead | 308 raise httpexception # use the original http RepoError instead |