Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 12179:1447d3a9ff4a
check-code: fix ternary expression introduced in 1ef9b0b5efec
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 08 Sep 2010 15:16:03 +0200 |
parents | 1ef9b0b5efec |
children | 00658492e2aa |
comparison
equal
deleted
inserted
replaced
12178:1ef9b0b5efec | 12179:1447d3a9ff4a |
---|---|
336 else: | 336 else: |
337 ui.write(_("The first bad revision is:\n")) | 337 ui.write(_("The first bad revision is:\n")) |
338 displayer.show(repo[nodes[0]]) | 338 displayer.show(repo[nodes[0]]) |
339 parents = repo[nodes[0]].parents() | 339 parents = repo[nodes[0]].parents() |
340 if len(parents) > 1: | 340 if len(parents) > 1: |
341 side = state['bad'] if good else state['good'] | 341 side = good and state['bad'] or state['good'] |
342 num = len(set(i.node() for i in parents) & set(side)) | 342 num = len(set(i.node() for i in parents) & set(side)) |
343 if num == 1: | 343 if num == 1: |
344 common = parents[0].ancestor(parents[1]) | 344 common = parents[0].ancestor(parents[1]) |
345 ui.write(_('Not all ancestors of this changeset have been' | 345 ui.write(_('Not all ancestors of this changeset have been' |
346 ' checked.\nTo check the other ancestors, start' | 346 ' checked.\nTo check the other ancestors, start' |