Mercurial > hg
changeset 8088:bdeb380a10de
commands, i18n: avoid untranslated strings as message parameters
author | Wagner Bruna <wbruna@yahoo.com> |
---|---|
date | Mon, 20 Apr 2009 20:38:37 -0300 |
parents | 6dcf425cc2a6 |
children | 67efe5e3b0fb |
files | mercurial/commands.py |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Apr 20 20:38:37 2009 -0300 +++ b/mercurial/commands.py Mon Apr 20 20:38:37 2009 -0300 @@ -287,15 +287,21 @@ """ def print_result(nodes, good): displayer = cmdutil.show_changeset(ui, repo, {}) - transition = (good and "good" or "bad") if len(nodes) == 1: # narrowed it down to a single revision - ui.write(_("The first %s revision is:\n") % transition) + if good: + ui.write(_("The first good revision is:\n")) + else: + ui.write(_("The first bad revision is:\n")) displayer.show(repo[nodes[0]]) else: # multiple possible revisions - ui.write(_("Due to skipped revisions, the first " - "%s revision could be any of:\n") % transition) + if good: + ui.write(_("Due to skipped revisions, the first " + "good revision could be any of:\n")) + else: + ui.write(_("Due to skipped revisions, the first " + "bad revision could be any of:\n")) for n in nodes: displayer.show(repo[n])