Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(696)

Unified Diff: git_cl.py

Issue 494713003: Have git-cl try fail when used on a closed CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 75b479664c1989ef053c8d283177e59985f897fe..82e9208632860decd8ad16c546eb57e433f6482e 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2303,6 +2303,9 @@ def CMDtry(parser, args):
parser.error('Need to upload first')
props = cl.GetIssueProperties()
+ if props.get('closed'):
+ parser.error('Cannot send tryjobs for a closed CL')
+
if props.get('private'):
parser.error('Cannot use trybots with private issue')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698