D5813: revset: add expect to check the size of a set

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Feb 12 08:53:21 EST 2019


pulkit added inline comments.

INLINE COMMENTS

> revset.py:866
> +def expectsize(repo, subset, x, order):
> +    """Abort if the revset doesn't expect given size"""
> +    args = getargsdict(x, 'expectsize', 'set size')

Can you improve this documentation as a follow-up? We should mentioned about specifying ranges, and also if the set has the given size, that set is returned.

REPOSITORY
  rHG Mercurial

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

To: navaneeth.suresh, #hg-reviewers
Cc: yuja, pulkit, durin42, mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list