Add patchset number on manual commit comment.

R=cmp@chromium.org, maruel@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12276007

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@182861 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 6085aba..e515f89 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1495,7 +1495,9 @@
     print ('Closing issue '
            '(you may be prompted for your codereview password)...')
     cl.CloseIssue()
-    comment = "Committed manually as r%s" % revision
+    props = cl.RpcServer().get_issue_properties(cl.GetIssue())
+    patch_num = len(props['patchset'])
+    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)
     cl.SetIssue(0)