Index: hgreview.py |
=================================================================== |
--- a/hgreview.py |
+++ b/hgreview.py |
@@ -35,17 +35,17 @@ def review(ui, repo, *paths, **opts): |
args = ['--oauth2', '--server', SERVER] |
if ui.debugflag: |
args.append('--noisy') |
elif ui.verbose: |
args.append('--verbose') |
elif ui.quiet: |
args.append('--quiet') |
- if opts.get('issue') or opts.get('message'): |
+ if not opts.get('issue') or opts.get('message'): |
args.append('--send_mail') |
if opts.get('revision') and opts.get('change'): |
raise error.Abort('Ambiguous revision range, only one of --revision and --change can be specified.') |
if opts.get('change'): |
args.extend(['--rev', '{0}^:{0}'.format(opts['change'])]) |
elif opts.get('revision'): |
args.extend(['--rev', opts['revision']]) |