Commit 71284d9b authored by carlosk@chromium.org's avatar carlosk@chromium.org

Improved git cl patch generated commit message to include patchset information

and a link to it.

BUG=

Review URL: https://codereview.chromium.org/731473002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@292940 0039d316-1c4b-4281-b951-d872f2087c98
parent d3cf588b
......@@ -2370,7 +2370,9 @@ def PatchIssue(issue_arg, reject, nocommit, directory):
# If we had an issue, commit the current state and register the issue.
if not nocommit:
RunGit(['commit', '-m', 'patch from issue %s' % issue])
RunGit(['commit', '-m', ('patch from issue %(i)s at patchset '
'%(p)s (http://crrev.com/%(i)s#ps%(p)s)'
% {'i': issue, 'p': patchset})])
cl = Changelist()
cl.SetIssue(issue)
cl.SetPatchset(patchset)
......
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