Adding Branch/Files Content in Atom Feed
Matt Mackall
mpm at selenic.com
Tue Apr 1 22:46:29 UTC 2014
On Tue, 2014-04-01 at 19:52 +0000, Jensen, Aaron wrote:
> We'd like to show branch and file info (adds/mods/deletes) in our
> repository's atom feed. I've updated the
> templates/atom/changelogentry.tmpl [1], but the branch name nor any of
> the file lists are showing up [2]. Is this an optimization? Is there
> a way to tell Mercurial that I'm OK with the performance hit?
Well, hgweb internally has no idea what an 'atom feed' is. The feed
styles are just a different template style like paper vs gitweb and the
feed links are just pointers with an atom style parameter added.
So you can consult the corresponding parts of the other styles to see
how it's done. Looks like you wanted "branches" (a legacy name from our
ancient implemention of branches).
> Also, I would prefer not to much with Mercurial's internal templates.
> Is there a way to tell HgWeb to use a custom style when formatting the
> Atom feed?
Yes, you just need to modify all the templates with atom links to point
to your new style. So no, not really. Maybe a version control tool would
be handy here?
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list