Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: hgreview.py

Issue 29371804: Noissue - [hgreview] Only use first line of commit message as review title (Closed) Base URL: https://hg.adblockplus.org/codingtools/
Patch Set: Created Jan. 13, 2017, 1:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
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: hgreview.py
===================================================================
--- a/hgreview.py
+++ b/hgreview.py
@@ -59,7 +59,8 @@
if not opts.get('issue'):
# New issue, make sure title and message are set
if not opts.get('title') and opts.get('change'):
- opts['title'] = repo[opts['change']].description()
+ opts['title'] = repo[opts['change']].description().rstrip().split('\n')[0]
Vasily Kuznetsov 2017/01/13 17:58:08 There's a bit too much code repetition here and, m
f.nicolaisen 2017/01/15 22:48:09 Acknowledged.
+ opts['message'] = repo[opts['change']].description()
if not opts.get('title'):
opts['title'] = ui.prompt('New review title: ', '')
if not opts['title'].strip():
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld