##// END OF EJS Templates
patchbomb: drop internal option for pbranch extension (API)...
Yuya Nishihara -
r31184:e3ab7c71 default
parent child Browse files
Show More
@@ -514,14 +514,12 b' def email(ui, repo, *revs, **opts):'
514 514 mbox = opts.get('mbox')
515 515 outgoing = opts.get('outgoing')
516 516 rev = opts.get('rev')
517 # internal option used by pbranches
518 patches = opts.get('patches')
519 517
520 518 if not (opts.get('test') or mbox):
521 519 # really sending
522 520 mail.validateconfig(ui)
523 521
524 if not (revs or rev or outgoing or bundle or patches):
522 if not (revs or rev or outgoing or bundle):
525 523 raise error.Abort(_('specify at least one changeset with -r or -o'))
526 524
527 525 if outgoing and bundle:
@@ -593,10 +591,7 b' def email(ui, repo, *revs, **opts):'
593 591 ui.config('patchbomb', 'from') or
594 592 prompt(ui, 'From', ui.username()))
595 593
596 if patches:
597 msgs = _getpatchmsgs(repo, sender, patches, opts.get('patchnames'),
598 **opts)
599 elif bundle:
594 if bundle:
600 595 bundledata = _getbundle(repo, dest, **opts)
601 596 bundleopts = opts.copy()
602 597 bundleopts.pop('bundle', None) # already processed
General Comments 0
You need to be logged in to leave comments. Login now