Do not enforce HEAD when a revision is not specified.
This brings back git cl try to try at LKGR instead of HEAD, which is coherent
with git-try and gcl try.
R=rogerta@chromium.org
BUG=
Review URL: https://chromiumcodereview.appspot.com/10963013
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@157810 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 29ee421..f884eaa 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1598,6 +1598,10 @@
cl.RpcServer().trigger_try_jobs(
cl.GetIssue(), patchset, options.name, options.clobber, options.revision,
builders_and_tests)
+ print('Tried jobs on:')
+ length = max(len(builder) for builder in builders_and_tests)
+ for builder in sorted(builders_and_tests):
+ print ' %*s: %s' % (length, builder, ','.join(builders_and_tests[builder]))
return 0