# HG changeset patch # User Martin von Zweigbergk # Date 2019-12-17 07:26:44 # Node ID 3781da40eaa676cf05182d18bbec4bb06b029eb0 # Parent 287556e71f8530e2081784ca37e1cfd47f318113 patchbomb: use cmdutil.check_at_most_one_arg() Differential Revision: https://phab.mercurial-scm.org/D7637 diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- a/hgext/patchbomb.py +++ b/hgext/patchbomb.py @@ -767,8 +767,7 @@ def email(ui, repo, *revs, **opts): b" do not re-specify --outgoing" ) ) - if rev and bookmark: - raise error.Abort(_(b"-r and -B are mutually exclusive")) + cmdutil.check_at_most_one_arg(opts, b'rev', b'bookmark') if outgoing or bundle: if len(revs) > 1: