From 34b5d8268644a40faea2d01d9b57d2ace49d6a22 Mon Sep 17 00:00:00 2001 From: "sadrul@chromium.org" Date: Mon, 18 Feb 2013 01:39:24 +0000 Subject: [PATCH] tyop: 'patchsets' seems to be the correct key, not 'patchset'. BUG='git cl dcommit' fails Review URL: https://chromiumcodereview.appspot.com/12300006 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@183051 0039d316-1c4b-4281-b951-d872f2087c98 --- git_cl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 11266914a..e0bf935cd 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1496,7 +1496,7 @@ def SendUpstream(parser, args, cmd): '(you may be prompted for your codereview password)...') cl.CloseIssue() props = cl.RpcServer().get_issue_properties(cl.GetIssue(), False) - patch_num = len(props['patchset']) + patch_num = len(props['patchsets']) comment = "Committed patchset #%d manually as r%s" % (patch_num, revision) comment += ' (presubmit successful).' if not options.bypass_hooks else '.' cl.RpcServer().add_comment(cl.GetIssue(), comment)