D7633: clone: extract helper for checking mutually exclusive args

dlax (Denis Laxalde) phabricator at mercurial-scm.org
Fri Dec 13 03:18:34 EST 2019


dlax added a comment.


  Useful refactoring!

INLINE COMMENTS

> cmdutil.py:263
>  
> +def check_unique_argument(opts, *args):
> +    """abort if more than one of the arguments are in opts"""

The function name is a bit misleading; it looks like it would check that an option wasn't specified multiple times. Perhaps `check_exclusive_arguments`?

REPOSITORY
  rHG Mercurial

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

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

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


More information about the Mercurial-devel mailing list