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

Sean Farley sean at farley.io
Thu Jul 6 21:13:46 EDT 2017


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170706/c0b81677/attachment.sig>


More information about the Mercurial-devel mailing list