bisect-kit: fix bisector 'view' subcommand
'view' subcommand may fail when re-generate revlist. This affected all
bisectors using codechange module.
BUG=chromium:898431
TEST=/bisect_android_repo.py init --old 5055130 --new 5056166 --branch git_pi-arc
Change-Id: I7c56b8044ccd63bdc402d259fddcfb06f675ed1d
Reviewed-on: https://chromium-review.googlesource.com/1309853
Commit-Ready: Kuang-che Wu <kcwu@chromium.org>
Tested-by: Kuang-che Wu <kcwu@chromium.org>
Reviewed-by: Chung-yih Wang <cywang@chromium.org>
diff --git a/bisect_android_repo.py b/bisect_android_repo.py
index 73c0ce0..15b1208 100755
--- a/bisect_android_repo.py
+++ b/bisect_android_repo.py
@@ -172,7 +172,7 @@
env['ANDROID_MIRROR'] = self.config['android_mirror']
env['INTRA_REV'] = rev
- def view(self, old, new):
+ def view(self, revlist, old, new):
print('old', old)
print('new', new)
@@ -193,7 +193,7 @@
cache = repo_util.RepoMirror(self.config['android_mirror'])
code_manager = codechange.CodeManager(self.config['android_root'],
spec_manager, cache)
- code_manager.view_rev_diff(old, new)
+ code_manager.view_rev_diff(revlist, old, new)
if __name__ == '__main__':