comparison hgext/patchbomb.py @ 32715:0841382d114a

patchbomb: avoid -r and -B options at the same time
author David Demelier <demelier.david@gmail.com>
date Tue, 06 Jun 2017 08:52:51 +0200
parents c2fe2b00db53
children d3b2d4587e73
comparison
equal deleted inserted replaced
32714:3ef319e9505f 32715:0841382d114a
557 raise error.Abort(_('specify at least one changeset with -B, -r or -o')) 557 raise error.Abort(_('specify at least one changeset with -B, -r or -o'))
558 558
559 if outgoing and bundle: 559 if outgoing and bundle:
560 raise error.Abort(_("--outgoing mode always on with --bundle;" 560 raise error.Abort(_("--outgoing mode always on with --bundle;"
561 " do not re-specify --outgoing")) 561 " do not re-specify --outgoing"))
562 if rev and bookmark:
563 raise error.Abort(_("-r and -B are mutually exclusive"))
562 564
563 if outgoing or bundle: 565 if outgoing or bundle:
564 if len(revs) > 1: 566 if len(revs) > 1:
565 raise error.Abort(_("too many destinations")) 567 raise error.Abort(_("too many destinations"))
566 if revs: 568 if revs: