On Tue, 21 Nov 2017 18:14:42 +0800, Anton Shestakov wrote: > # HG changeset patch > # User Anton Shestakov <a...@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? _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel