[PATCH 5 of 9 V3] template: compute verb in obsfateverb
Yuya Nishihara
yuya at tcha.org
Tue Aug 22 14:59:11 UTC 2017
On Mon, 21 Aug 2017 10:43:57 +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at 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
> + at 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.
More information about the Mercurial-devel
mailing list