Mercurial > hg
annotate mercurial/templates/rss/changelogentry.tmpl @ 22814:8110405cf8ae
revset-limit: use boolean testing instead of `len(revs) < 1`
I'm not sure why we wrote it that way. But smartsets have faster/lazier non-zero
testing than length computation.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 06 Oct 2014 11:43:32 -0700 |
parents | 16352b34e32e |
children | 849b8e84487e |
rev | line source |
---|---|
599 | 1 <item> |
21118
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
2 <title>{inbranch%"{if(name, '[{name|escape}] ')}"}{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape}</title> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9999
diff
changeset
|
3 <guid isPermaLink="true">{urlbase}{url|urlescape}rev/{node|short}</guid> |
21119
26f39f28b059
hgweb: adding article link to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21118
diff
changeset
|
4 <link>{urlbase}{url|urlescape}rev/{node|short}</link> |
21057
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
5 <description> |
21118
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
6 <![CDATA[ |
21057
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
7 <table> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
8 <tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
9 <th style="text-align:left;">changeset</th> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
10 <td>{node|short}</td> |
21118
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
11 </tr> |
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
12 <tr> |
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
13 <th style="text-align:left;">branch</th> |
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
14 <td>{inbranch%"{name|escape}"}{branches%"{name|escape}"}</td> |
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
15 </tr> |
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
16 <tr> |
e1a3898a8bb8
hgweb: adding branch names from inbranch template to rss feed
Aaron Jensen <ajensen@webmd.net>
parents:
21057
diff
changeset
|
17 <th style="text-align:left;">bookmark</th> |
21057
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
18 <td>{bookmarks%"{name|escape}"}</td> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
19 </tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
20 <tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
21 <th style="text-align:left;">tag</th> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
22 <td>{tags%"{name|escape}"}</td> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
23 </tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
24 <tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
25 <th style="text-align:left;vertical-align:top;">user</th> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
26 <td>{author|obfuscate}</td> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
27 </tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
28 <tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
29 <th style="text-align:left;vertical-align:top;">description</th> |
21486
16352b34e32e
hgweb: apply websub filter to the changeset description in rss and atom feeds
Steven Brown <StevenGBrown@gmail.com>
parents:
21119
diff
changeset
|
30 <td>{desc|strip|escape|websub|addbreaks|nonempty}</td> |
21057
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
31 </tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
32 <tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
33 <th style="text-align:left;vertical-align:top;">files</th> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
34 <td>{files}</td> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
35 </tr> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
36 </table> |
19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
Aaron Jensen <ajensen@webmd.net>
parents:
18526
diff
changeset
|
37 ]]></description> |
8428
5ccca71775e1
atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8235
diff
changeset
|
38 <author>{author|obfuscate}</author> |
5ccca71775e1
atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8235
diff
changeset
|
39 <pubDate>{date|rfc822date}</pubDate> |
599 | 40 </item> |