hgext/patchbomb.py
changeset 4562 d48e1b5f8265
parent 4487 ead2fa544cbf
child 4563 1cf908c00479
equal deleted inserted replaced
4561:8044be585b91 4562:d48e1b5f8265
   227         mail.validateconfig(ui)
   227         mail.validateconfig(ui)
   228 
   228 
   229     if not (revs or opts.get('rev') or opts.get('outgoing')):
   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'))
   230         raise util.Abort(_('specify at least one changeset with -r or -o'))
   231 
   231 
   232     commands.setremoteconfig(ui, opts)
   232     cmdutil.setremoteconfig(ui, opts)
   233     if opts.get('outgoing') and opts.get('bundle'):
   233     if opts.get('outgoing') and opts.get('bundle'):
   234         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"))
   235 
   235 
   236     if opts.get('outgoing') or opts.get('bundle'):
   236     if opts.get('outgoing') or opts.get('bundle'):
   237         if len(revs) > 1:
   237         if len(revs) > 1: