[PATCH] hgweb: display fate of obsolete changesets
Yuya Nishihara
yuya at tcha.org
Sun Nov 26 06:10:14 EST 2017
On Tue, 21 Nov 2017 18:14:42 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6 at dwimlabs.net>
> # Date 1511255021 -28800
> # Tue Nov 21 17:03:41 2017 +0800
> # Node ID f8e398c42760482f02e6cfb6b8a1e6a752564c95
> # Parent ff80efc8f3e469c90376603af4fa39012f328918
> # EXP-Topic hgweb-more-info
> hgweb: display fate of obsolete changesets
> diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py
> --- a/mercurial/hgweb/webutil.py
> +++ b/mercurial/hgweb/webutil.py
> @@ -28,10 +28,12 @@ from .. import (
> error,
> match,
> mdiff,
> + obsutil,
> patch,
> pathutil,
> pycompat,
> templatefilters,
> + templatekw,
> ui as uimod,
> util,
> )
> @@ -351,6 +353,10 @@ def linerange(req):
> def formatlinerange(fromline, toline):
> return '%d:%d' % (fromline + 1, toline)
>
> +def obsfate(repo, ctx, ui):
> + return [obsutil.obsfateprinter(x['successors'], x['markers'], ui)
> + for x in templatekw.showsuccsandmarkers(repo, ctx)]
Maybe we should first refactor obsfate utility to not depend on templatekw.
Boris, any progress on this?
More information about the Mercurial-devel
mailing list