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

Yuya Nishihara yuya at tcha.org
Tue Feb 12 07:43:36 EST 2019


> + at predicate('expectsize(set[, size])', safe=True, takeorder=True)
> +def expectrevsetsize(repo, subset, x, order):
> +    """Abort if the revset doesn't expect given size"""
> +    args = getargsdict(x, 'expect', 'set size')

Fixed function name and queued, thanks.


More information about the Mercurial-devel mailing list