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'] |