Commit ff6cf0e5 authored by maruel@chromium.org's avatar maruel@chromium.org

gcl commit must accept additional arguments.

TBR=jam

Review URL: http://codereview.chromium.org/2252001

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@48235 0039d316-1c4b-4281-b951-d872f2087c98
parent 35fe9ada
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment