bisect-kit: log stderr messages for more commands
In order to make debugging easier.
BUG=b:139457738
TEST=None
Change-Id: I622360315b117d22ad154118e937cc89ff145233
Reviewed-on: https://chromium-review.googlesource.com/1755465
Tested-by: Kuang-che Wu <kcwu@chromium.org>
Commit-Ready: Chi-Ngai Wan <cnwan@google.com>
Commit-Ready: Chi-Ngai Wan <cnwan@chromium.org>
Commit-Ready: Kuang-che Wu <kcwu@chromium.org>
Commit-Ready: Zheng-Jie Chang <zjchang@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Chi-Ngai Wan <cnwan@google.com>
Reviewed-by: Chi-Ngai Wan <cnwan@chromium.org>
Reviewed-by: Zheng-Jie Chang <zjchang@google.com>
diff --git a/bisect_kit/git_util.py b/bisect_kit/git_util.py
index c34fa3d..4844dec 100644
--- a/bisect_kit/git_util.py
+++ b/bisect_kit/git_util.py
@@ -239,7 +239,7 @@
"""
meta = {}
data = util.check_output(
- 'git', 'cat-file', '-p', rev, cwd=git_repo, log_output=False)
+ 'git', 'cat-file', '-p', rev, cwd=git_repo, log_stdout=False)
header, meta['message'] = data.split('\n\n', 1)
for line in header.splitlines():
m = re.match(r'^tree (\w+)', line)
@@ -348,7 +348,7 @@
file content (str)
"""
return util.check_output(
- 'git', 'show', '%s:%s' % (rev, path), cwd=git_repo, log_output=False)
+ 'git', 'show', '%s:%s' % (rev, path), cwd=git_repo, log_stdout=False)
def list_dir_from_revision(git_repo, rev, path):
@@ -371,7 +371,7 @@
'--name-only',
'%s:%s' % (rev, path),
cwd=git_repo,
- log_output=False).splitlines()
+ log_stdout=False).splitlines()
def get_rev_by_time(git_repo, timestamp, branch, path=None):