Index: git_cl.py |
diff --git a/git_cl.py b/git_cl.py |
index f884eaa6c655afe2b42d1c9ba67e49e8aca953fc..6c7afe48f50d4ce1a42dfdd338b2f05ce1b7f357 100755 |
--- a/git_cl.py |
+++ b/git_cl.py |
@@ -1591,6 +1591,14 @@ def CMDtry(parser, args): |
(b, forced_tests) for b, t in builders_and_tests.iteritems() |
if t != ['compile']) |
+ if any('triggered' in b for b in builders_and_tests): |
+ print >> sys.stderr, ( |
+ 'ERROR You are trying to send a job to a triggered bot. This type of' |
+ ' bot requires an\ninitial job from a parent (usually a builder). ' |
+ 'Instead send your job to the parent.\n' |
+ 'Bot list: %s' % builders_and_tests) |
+ return 1 |
+ |
patchset = cl.GetPatchset() |
if not cl.GetPatchset(): |
patchset = cl.GetMostRecentPatchset(cl.GetIssue()) |