[PATCH 4 of 9 V4] template: add minimal obsfate template function

Yuya Nishihara yuya at tcha.org
Fri Aug 25 10:11:42 EDT 2017


On Fri, 25 Aug 2017 22:59:11 +0900, Yuya Nishihara wrote:
> On Wed, 23 Aug 2017 17:18:38 +0200, Boris Feld wrote:
> > +def successorsandmarkers(repo, ctx):
> > +    """compute the raw data needed for computing obsfate
> > +    Returns a list of dict, one dict per successors set
> > +    """
> > +    if not ctx.obsolete():
> > +        return None
> > +    ssets = successorssets(repo, ctx.node(), closest=True)
> > +
> > +    values = []
> > +    for sset in ssets:
> > +        values.append({'successors': sset, 'markers': sset.markers})
> > +
> > +    return values
> 
> This function seems not useful because showsuccsandmarkers() have to
> reconstruct a list anyway.

Never mind. I got the reason by the later patch.


More information about the Mercurial-devel mailing list