Commit 3b8094ac authored by Edward Lemur's avatar Edward Lemur Committed by LUCI CQ

git-cl: Fix call to GetChange.

GetChange now takes a single argument.

Bug: 1042324, 1050198
Change-Id: Ib8521d7134e9c7b251d590dac6759a6cc585d3b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2044971Reviewed-by: 's avatarAnthony Polito <apolito@google.com>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent 8ac1b465
...@@ -407,8 +407,7 @@ def _get_bucket_map(changelist, options, option_parser): ...@@ -407,8 +407,7 @@ def _get_bucket_map(changelist, options, option_parser):
# If no bots are listed, we try to get a set of builders and tests based # If no bots are listed, we try to get a set of builders and tests based
# on GetPreferredTryMasters functions in PRESUBMIT.py files. # on GetPreferredTryMasters functions in PRESUBMIT.py files.
if not options.bot: if not options.bot:
change = changelist.GetChange( change = changelist.GetChange(changelist.GetCommonAncestorWithUpstream())
changelist.GetCommonAncestorWithUpstream(), None)
# Get try masters from PRESUBMIT.py files. # Get try masters from PRESUBMIT.py files.
masters = presubmit_support.DoGetTryMasters( masters = presubmit_support.DoGetTryMasters(
change=change, change=change,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment