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

Unified Diff: hgreview.py

Issue 29923560: Fixes 6996 - Also fix -c when -t is not present (Closed) Base URL: https://hg.adblockplus.org/codingtools
Patch Set: Created Oct. 24, 2018, 2:10 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
@@ -62,17 +62,18 @@
if not opts.get('issue'):
# New issue, make sure title and message are set
fulltitle = None
if not opts.get('title') and not opts.get('change'):
opts['title'] = ui.prompt('New review title: ', '')
elif not opts.get('title'):
- fulltitle = repo[opts['change']].description()
+ rev_no = repo.revs(opts['change']).first()
+ fulltitle = repo[rev_no].description()
opts['title'] = fulltitle.rstrip().split('\n')[0]
if not opts['title'].strip():
raise error.Abort('No review title given.')
if not opts.get('message'):
opts['message'] = fulltitle or opts['title']
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld