[PATCH] hgweb: display fate of obsolete changesets

Augie Fackler raf at durin42.com
Thu Nov 30 16:08:53 EST 2017


(+boris explicitly to try and get his attention)

On Sun, Nov 26, 2017 at 08:10:14PM +0900, Yuya Nishihara wrote:
> 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?
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list