Index: hgreview.py |
=================================================================== |
--- a/hgreview.py |
+++ b/hgreview.py |
@@ -60,17 +60,19 @@ def review(ui, repo, *paths, **opts): |
if not opts.get('title'): |
opts['title'] = ui.prompt('New review title: ', '') |
if not opts['title'].strip(): |
raise error.Abort('No review title given.') |
if not opts.get('message'): |
opts['message'] = opts['title'] |
- path = ui.config('paths', 'default-push') or ui.config('paths', 'default') |
+ path = (ui.config('paths', 'default-push') |
+ or ui.config('paths', 'default') |
+ or '') |
match = re.search(r'^(?:https://|ssh://hg@)(.*)', path) |
if match: |
opts['message'] = '{0}\n\nRepository: {1}'.format( |
opts['message'].strip(), |
match.group(1) |
) |
# Make sure there is at least one reviewer |