On Wed, 03 Jan 2018 17:00:35 +0100, Boris Feld wrote:
> What about introducing a intermediary function obsfatedata that would
> returns a dictionary with all the raw values.
> 
> Something like:
> 
> {'markers': [..., ...],
>  'max_date': (0.0, 0),
>  'min_date': (0.0, 0),
>  'successors': ['7a230b46bf61e50b30308c6cfd7bd1269ef54702'],
>  'users': ['test'],
>  'verb': 'reworded'}

IIUC, we already have utility functions at that level, such as
obsutil.obsfateverb(). What's an advantage of packing them into a dict?

> This dictionnary could then be used by various functions in different
> context to render for hgweb, a non-template translation version and a
> template version.

hgweb thing was implemented using templatekw.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to