[PATCH 4 of 9] template: add minimal obsfate template

Boris Feld boris.feld at octobus.net
Fri Jul 7 06:28:29 EDT 2017


On Thu, 2017-07-06 at 18:13 -0700, Sean Farley wrote:
> Jun Wu <quark at fb.com> writes:
> 
> > I'm not a big fan of this obsfate template approach. Ideally we
> > could
> > extract information from an obsmarker using templates. Something
> > like
> > "{marker.user} {marker.operation} {marker.xxxx}". That's much more
> > flexible
> > and could work with colors trivially.
> 
> Heh, I was writing almost the same email.
> 
> > The current template is binded to a
> > ctx. We could define some functions or introduce special synctax to
> > make it
> > bind to an obsmarker.
> 
> Hmm, maybe. I'm not sure the marker information would be concise
> enough.
> At the very least, I think we could do that in another series as an
> experiment.
> 
> It might turn out that we need more functionality in the template
> engine
> as well.

I've answered to sean email on Patch 9 as it introduce more templating
capabilities, could we merge the two discussion there?

Cheers,

> _______________________________________________
> 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