[PATCH] hgweb: display fate of obsolete changesets
Yuya Nishihara
yuya at tcha.org
Thu Jan 4 07:50:44 UTC 2018
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.
More information about the Mercurial-devel
mailing list