comparison mercurial/commands.py @ 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 fd35e9d72879
children 496ae1ea4698
comparison
equal deleted inserted replaced
8087:6dcf425cc2a6 8088:bdeb380a10de
285 - skipped, 127 (command not found) - bisection will be aborted; 285 - skipped, 127 (command not found) - bisection will be aborted;
286 any other status bigger than 0 will mark revision as bad. 286 any other status bigger than 0 will mark revision as bad.
287 """ 287 """
288 def print_result(nodes, good): 288 def print_result(nodes, good):
289 displayer = cmdutil.show_changeset(ui, repo, {}) 289 displayer = cmdutil.show_changeset(ui, repo, {})
290 transition = (good and "good" or "bad")
291 if len(nodes) == 1: 290 if len(nodes) == 1:
292 # narrowed it down to a single revision 291 # narrowed it down to a single revision
293 ui.write(_("The first %s revision is:\n") % transition) 292 if good:
293 ui.write(_("The first good revision is:\n"))
294 else:
295 ui.write(_("The first bad revision is:\n"))
294 displayer.show(repo[nodes[0]]) 296 displayer.show(repo[nodes[0]])
295 else: 297 else:
296 # multiple possible revisions 298 # multiple possible revisions
297 ui.write(_("Due to skipped revisions, the first " 299 if good:
298 "%s revision could be any of:\n") % transition) 300 ui.write(_("Due to skipped revisions, the first "
301 "good revision could be any of:\n"))
302 else:
303 ui.write(_("Due to skipped revisions, the first "
304 "bad revision could be any of:\n"))
299 for n in nodes: 305 for n in nodes:
300 displayer.show(repo[n]) 306 displayer.show(repo[n])
301 307
302 def check_state(state, interactive=True): 308 def check_state(state, interactive=True):
303 if not state['good'] or not state['bad']: 309 if not state['good'] or not state['bad']: