hgext/patchbomb.py
changeset 4487 ead2fa544cbf
parent 4486 c15955bde7dd
child 4562 d48e1b5f8265
equal deleted inserted replaced
4486:c15955bde7dd 4487:ead2fa544cbf
   224             os.rmdir(tmpdir)
   224             os.rmdir(tmpdir)
   225 
   225 
   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"))
   233 
   235 
   234     if opts.get('outgoing') or opts.get('bundle'):
   236     if opts.get('outgoing') or opts.get('bundle'):