comparison mercurial/dispatch.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 ddc7268da176
children 633cd0c46e6a
comparison
equal deleted inserted replaced
18690:4c6f7f0dadab 18691:4f485bd68f1d
745 ret = runcommand(lui, repo, cmd, fullargs, ui, options, d, 745 ret = runcommand(lui, repo, cmd, fullargs, ui, options, d,
746 cmdpats, cmdoptions) 746 cmdpats, cmdoptions)
747 return ret 747 return ret
748 finally: 748 finally:
749 duration = time.time() - starttime 749 duration = time.time() - starttime
750 ui.log("commandfinish", _("%s exited %s after %0.2f seconds\n"), 750 ui.log("commandfinish", "%s exited %s after %0.2f seconds\n",
751 cmd, ret, duration) 751 cmd, ret, duration)
752 if repo and repo != req.repo: 752 if repo and repo != req.repo:
753 repo.close() 753 repo.close()
754 754
755 def lsprofile(ui, func, fp): 755 def lsprofile(ui, func, fp):