如何使Mercurial(hgwebdir)rss/atom feed显示分支名称 [英] How to make the Mercurial (hgwebdir) rss/atom feed display the branch name
本文介绍了如何使Mercurial(hgwebdir)rss/atom feed显示分支名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
除了标准字段(标题,guid,描述,作者,pubDate)之外,我想配置Mercurial服务器安装,以便rss/atom feed将发布变更集的分支名称.
I would like to configure our Mercurial server installation so the rss/atom feed will publish the branch name of the changeset, in addition to the standard fields (title, guid, description, author, pubDate).
推荐答案
我终于找到了解决方案"rel =" nofollow"title =" the Mercurial邮件列表>商业邮件列表.
I finally found a solution on the Mercurial mailing lists.
我必须像这样编辑 templates \ rss-log \ changelogentry.tmpl :
<item>
<title>{desc|strip|firstline|strip|escape}</title>
<guid isPermaLink="true">{urlbase}{url}rev/{node|short}</guid>
<description>
<![CDATA[<i>{inbranch%branchname}{branches%branchname}</i>
<p>{desc|strip|escape|addbreaks|nonempty}]]>
</description>
<files>{file_mods}</files>
<author>{author|obfuscate}</author>
<pubDate>{date|rfc822date}</pubDate>
</item>
我必须将以下行添加到 templates \ rss-log \ map :
And I had to add the following line to templates\rss-log\map:
branchname = '{name}'
这篇关于如何使Mercurial(hgwebdir)rss/atom feed显示分支名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文