mercurial/templates/atom/changelogentry.tmpl
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Tue, 29 Dec 2015 23:58:30 +0900
changeset 27586 42910f9fffeb
parent 21486 16352b34e32e
child 29439 c42a3fd5c1fc
permissions -rw-r--r--
revset: use delayregistrar to register predicate in extension easily Previous patch introduced 'revset.predicate' decorator to register revset predicate function easily. But it shouldn't be used in extension directly, because it registers specified function immediately. Registration itself can't be restored, even if extension loading fails after that. Therefore, registration should be delayed until 'uisetup()' or so. This patch uses 'extpredicate' decorator derived from 'delayregistrar' to register predicate in extension easily. This patch also tests whether 'registrar.delayregistrar' avoids function registration if 'setup()' isn't invoked on it, because 'extpredicate' is the first user of it.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5269
46c5e1ee8aaa Added support for the Atom syndication format
Robert Bachmann <rbach@rbach.priv.at>
parents:
diff changeset
     1
 <entry>
21117
91eb605022f5 hgweb: adding branch names from inbranch template to atom feed
Aaron Jensen <ajensen@webmd.net>
parents: 21056
diff changeset
     2
  <title>{inbranch%"{if(name, '[{name|escape}] ')}"}{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape|nonempty}</title>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 9999
diff changeset
     3
  <id>{urlbase}{url|urlescape}#changeset-{node}</id>
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 9999
diff changeset
     4
  <link href="{urlbase}{url|urlescape}rev/{node|short}"/>
5269
46c5e1ee8aaa Added support for the Atom syndication format
Robert Bachmann <rbach@rbach.priv.at>
parents:
diff changeset
     5
  <author>
8428
5ccca71775e1 atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8235
diff changeset
     6
   <name>{author|person|escape}</name>
5ccca71775e1 atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8235
diff changeset
     7
   <email>{author|email|obfuscate}</email>
5269
46c5e1ee8aaa Added support for the Atom syndication format
Robert Bachmann <rbach@rbach.priv.at>
parents:
diff changeset
     8
  </author>
8428
5ccca71775e1 atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8235
diff changeset
     9
  <updated>{date|rfc3339date}</updated>
5ccca71775e1 atom/rss: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8235
diff changeset
    10
  <published>{date|rfc3339date}</published>
5269
46c5e1ee8aaa Added support for the Atom syndication format
Robert Bachmann <rbach@rbach.priv.at>
parents:
diff changeset
    11
  <content type="xhtml">
21056
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    12
	<table xmlns="http://www.w3.org/1999/xhtml">
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    13
	<tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    14
		<th style="text-align:left;">changeset</th>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    15
		<td>{node|short}</td>
21117
91eb605022f5 hgweb: adding branch names from inbranch template to atom feed
Aaron Jensen <ajensen@webmd.net>
parents: 21056
diff changeset
    16
              </tr>
91eb605022f5 hgweb: adding branch names from inbranch template to atom feed
Aaron Jensen <ajensen@webmd.net>
parents: 21056
diff changeset
    17
              <tr>
91eb605022f5 hgweb: adding branch names from inbranch template to atom feed
Aaron Jensen <ajensen@webmd.net>
parents: 21056
diff changeset
    18
                              <th style="text-align:left;">branch</th>
91eb605022f5 hgweb: adding branch names from inbranch template to atom feed
Aaron Jensen <ajensen@webmd.net>
parents: 21056
diff changeset
    19
                              <td>{inbranch%"{name|escape}"}{branches%"{name|escape}"}</td>
91eb605022f5 hgweb: adding branch names from inbranch template to atom feed
Aaron Jensen <ajensen@webmd.net>
parents: 21056
diff changeset
    20
              </tr>
91eb605022f5 hgweb: adding branch names from inbranch template to atom feed
Aaron Jensen <ajensen@webmd.net>
parents: 21056
diff changeset
    21
              <tr>
91eb605022f5 hgweb: adding branch names from inbranch template to atom feed
Aaron Jensen <ajensen@webmd.net>
parents: 21056
diff changeset
    22
                              <th style="text-align:left;">bookmark</th>
21056
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    23
		<td>{bookmarks%"{name|escape}"}</td>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    24
	</tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    25
	<tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    26
		<th style="text-align:left;">tag</th>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    27
		<td>{tags%"{name|escape}"}</td>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    28
	</tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    29
	<tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    30
		<th style="text-align:left;">user</th>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    31
		<td>{author|obfuscate}</td>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    32
	</tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    33
	<tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    34
		<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: 21117
diff changeset
    35
		<td>{desc|strip|escape|websub|addbreaks|nonempty}</td>
21056
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    36
	</tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    37
	<tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    38
		<th style="text-align:left;vertical-align:top;">files</th>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    39
		<td>{files}</td>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    40
	</tr>
d70703954a2a hgweb: adding branch, tags, bookmarks, user, and file list to atom feed entries
Aaron Jensen <ajensen@webmd.net>
parents: 18526
diff changeset
    41
	</table>
5269
46c5e1ee8aaa Added support for the Atom syndication format
Robert Bachmann <rbach@rbach.priv.at>
parents:
diff changeset
    42
  </content>
46c5e1ee8aaa Added support for the Atom syndication format
Robert Bachmann <rbach@rbach.priv.at>
parents:
diff changeset
    43
 </entry>