Patchwork D7637: pathbomb: use cmdutil.check_at_most_one_arg()

login
register
mail settings
Submitter phabricator
Date Dec. 17, 2019, 7:58 a.m.
Message ID <8025d4dd4bc159db665b5075d7fab5a2@localhost.localdomain>
Download mbox | patch
Permalink /patch/43900/
State Not Applicable
Headers show

Comments

phabricator - Dec. 17, 2019, 7:58 a.m.
Closed by commit rHG3781da40eaa6: patchbomb: use cmdutil.check_at_most_one_arg() (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7637?vs=18763&id=18791

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7637/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7637

AFFECTED FILES
  hgext/patchbomb.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -767,8 +767,7 @@ 
                 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: