##// END OF EJS Templates
patchbomb: Fail early if no revs given to email
Bryan O'Sullivan -
r4493:ead2fa54 default
parent child Browse files
Show More
@@ -226,7 +226,9 b' def patchbomb(ui, repo, *revs, **opts):'
226 if not opts['test']:
226 if not opts['test']:
227 mail.validateconfig(ui)
227 mail.validateconfig(ui)
228
228
229 # option handling
229 if not (revs or opts.get('rev') or opts.get('outgoing')):
230 raise util.Abort(_('specify at least one changeset with -r or -o'))
231
230 commands.setremoteconfig(ui, opts)
232 commands.setremoteconfig(ui, opts)
231 if opts.get('outgoing') and opts.get('bundle'):
233 if opts.get('outgoing') and opts.get('bundle'):
232 raise util.Abort(_("--outgoing mode always on with --bundle; do not re-specify --outgoing"))
234 raise util.Abort(_("--outgoing mode always on with --bundle; do not re-specify --outgoing"))
General Comments 0
You need to be logged in to leave comments. Login now