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

Unified Diff: git_cl_hooks.py

Issue 523101: When running git presubmit hooks, use the changelist's description,... (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 10 years, 11 months 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_hooks.py
===================================================================
--- git_cl_hooks.py (revision 35638)
+++ git_cl_hooks.py (working copy)
@@ -9,6 +9,7 @@
import breakpad
+import gcl
import presubmit_support
import scm
import watchlists
@@ -39,9 +40,12 @@
if not m:
raise Exception("Could not parse log message: %s" % log)
name = m.group(1)
- description = m.group(2)
files = scm.GIT.CaptureStatus([root], upstream_branch)
issue = Backquote(['git', 'cl', 'status', '--field=id'])
+ if issue == "None":
+ description = m.group(2)
+ else:
+ description = gcl.GetIssueDescription(int(issue))
patchset = None
self.change = presubmit_support.GitChange(name, description, absroot, files,
issue, 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