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

Unified Diff: gcl.py

Issue 2252001: gcl commit must accept additional arguments. (Closed)
Patch Set: Created 10 years, 7 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: gcl.py
diff --git a/gcl.py b/gcl.py
index cc1fb6704fd075f59994371503eadc0e1f3b1986..910a0d9139ce93abdc2558aa5c56fe0d639b8fad 100755
--- a/gcl.py
+++ b/gcl.py
@@ -917,8 +917,10 @@ def TryChange(change_info, args, swallow_exception):
prog='gcl try')
-@need_change
-def CMDcommit(change_info):
+def CMDcommit(args):
+ if not args:
+ ErrorExit("You need to pass a change list name")
+ change_info = ChangeInfo.Load(args.pop(0), GetRepositoryRoot(), True, True)
if not change_info.GetFiles():
print "Nothing to commit, changelist is empty."
return 1
« 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