Infer CL author and reviewer list from local state if the issue has not previously been uploaded.
R=agable@chromium.org
BUG=none
Review URL: https://codereview.chromium.org/195793021
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@259250 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 82d5a78..1a1c648 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1694,6 +1694,11 @@
cl.SetWatchers(watchlist.GetWatchersForPaths(files))
if not options.bypass_hooks:
+ if options.reviewers:
+ # Set the reviewer list now so that presubmit checks can access it.
+ change_description = ChangeDescription(change.FullDescriptionText())
+ change_description.update_reviewers(options.reviewers)
+ change.SetDescriptionText(change_description.description)
hook_results = cl.RunHook(committing=False,
may_prompt=not options.force,
verbose=options.verbose,