comparison hgext/patchbomb.py @ 43896:3781da40eaa6

patchbomb: use cmdutil.check_at_most_one_arg() Differential Revision: https://phab.mercurial-scm.org/D7637
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 17 Dec 2019 10:26:44 +0300
parents ec53ea01c9e6
children 8cce9f77ca73
comparison
equal deleted inserted replaced
43895:287556e71f85 43896:3781da40eaa6
765 _( 765 _(
766 b"--outgoing mode always on with --bundle;" 766 b"--outgoing mode always on with --bundle;"
767 b" do not re-specify --outgoing" 767 b" do not re-specify --outgoing"
768 ) 768 )
769 ) 769 )
770 if rev and bookmark: 770 cmdutil.check_at_most_one_arg(opts, b'rev', b'bookmark')
771 raise error.Abort(_(b"-r and -B are mutually exclusive"))
772 771
773 if outgoing or bundle: 772 if outgoing or bundle:
774 if len(revs) > 1: 773 if len(revs) > 1:
775 raise error.Abort(_(b"too many destinations")) 774 raise error.Abort(_(b"too many destinations"))
776 if revs: 775 if revs: