On Mon, 21 Aug 2017 10:43:57 +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.f...@octobus.net>
> # Date 1499088807 -7200
> #      Mon Jul 03 15:33:27 2017 +0200
> # Node ID 66a2b0407c8cffedfae4897bd7a2f0e2d6a22363
> # Parent  84a35f753f9ab500902f5c06ce3845ce85e5b5a9
> # EXP-Topic obsfatetemplate
> template: compute verb in obsfateverb

> +@templatefunc('obsfateverb(successors, markers)')
> +def obsfateverb(context, mapping, args):
> +    """ Compute obsfate related information based on successors and markers
> +    """
> +    successors = evalfuncarg(context, mapping, args[0])
> +    markers = evalfuncarg(context, mapping, args[1])
> +
> +    return obsutil._successorsetverb(successors, markers)['verb']

This will need to check the number of arguments and their types.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to