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

Unified Diff: git_cl.py

Issue 731473002: Improved git cl patch generated commit message to include patchset information (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Just a nit. Created 6 years, 1 month 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: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 48f6c26d4d8e7f729c5ca6c8d6951cc4ee05e226..bd17599384dc0320758afd7df94de2d08c3706e9 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -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)
« 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