Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 18691:4f485bd68f1d
blackbox: do not translate the log messages
User 'timeless' in irc mentioned that having the blackbox be
translated would result in logs that:
- may be mixed language, if multiple users use the same repo
- are not google searchable (since searching for english gives more
results)
- might not be readable by an admin if the employee is using hg in
his native language
And therefore we should log everything in english.
author | Durham Goode <durham@fb.com> |
---|---|
date | Wed, 13 Feb 2013 12:51:30 -0800 |
parents | 539210ed2069 |
children | 7790d69af6d6 |
comparison
equal
deleted
inserted
replaced
18690:4c6f7f0dadab | 18691:4f485bd68f1d |
---|---|
2400 self.hook("incoming", node=hex(n), source=srctype, | 2400 self.hook("incoming", node=hex(n), source=srctype, |
2401 url=url) | 2401 url=url) |
2402 | 2402 |
2403 newheads = [h for h in self.heads() if h not in oldheads] | 2403 newheads = [h for h in self.heads() if h not in oldheads] |
2404 self.ui.log("incoming", | 2404 self.ui.log("incoming", |
2405 _("%s incoming changes - new heads: %s\n"), | 2405 "%s incoming changes - new heads: %s\n", |
2406 len(added), | 2406 len(added), |
2407 ', '.join([hex(c[:6]) for c in newheads])) | 2407 ', '.join([hex(c[:6]) for c in newheads])) |
2408 self._afterlock(runhooks) | 2408 self._afterlock(runhooks) |
2409 | 2409 |
2410 finally: | 2410 finally: |