bisect-kit: revise output of bisector view command
BUG=None
TEST=run bisectors with view command manually
Change-Id: I3585035aa548ebb8d559e1d6cc8237e329a925c0
Reviewed-on: https://chromium-review.googlesource.com/1396058
Commit-Ready: Kuang-che Wu <kcwu@chromium.org>
Tested-by: Kuang-che Wu <kcwu@chromium.org>
Reviewed-by: Chi-Ngai Wan <cnwan@google.com>
diff --git a/bisect_kit/cli.py b/bisect_kit/cli.py
index d847577..5d43577 100644
--- a/bisect_kit/cli.py
+++ b/bisect_kit/cli.py
@@ -530,10 +530,10 @@
old, new = summary['current_range']
old_idx, new_idx = map(self.states.data['revlist'].index, [old, new])
- if 'links_note' in summary:
- print(summary['links_note'])
- for key, link in summary.get('links', {}).items():
- print('%s: %s' % (key, link))
+ for link in summary.get('links', []):
+ print('%s: %s' % (link['name'], link['url']))
+ if 'note' in link:
+ print(link['note'])
print('Range: (%s, %s], %s revs left' % (old, new, (new_idx - old_idx)))
if 'remaining_steps' in summary: