annotate templates/filelogentry-rss.tmpl @ 870:a82eae840447

Teach walk code about absolute paths. The first consequence of this is that absolute and relative paths now all work in the same way. The second is that paths that lie outside the repository now cause an error to be reported, instead of something arbitrary and expensive being done. Internally, all of the serious work is in the util package. The new canonpath function takes an arbitrary path and either returns a canonical path or raises an error. Because it needs to know where the repository root is, it must be fed a repository or dirstate object, which has given commands.matchpats and friends a new parameter to pass along. The util.matcher function uses this to canonicalise globs and relative path names. Meanwhile, I've moved the Abort exception from commands to util, and killed off the redundant util.CommandError exception.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 07 Aug 2005 12:43:11 -0800
parents 0902ffece4b4
children 17703aa4491e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
599
765182a4c843 [PATCH] Add RSS support to hgweb
mpm@selenic.com
parents:
diff changeset
1 <item>
765182a4c843 [PATCH] Add RSS support to hgweb
mpm@selenic.com
parents:
diff changeset
2 <title>#desc|firstline|escape#</title>
626
47207ec19c51 Fix quoting for RSS links
Matt Mackall <mpm@selenic.com>
parents: 601
diff changeset
3 <link>#url#?cmd=file;file=#file#;filenode=#filenode#</link>
777
8a61f25414b5 Wrap RSS description in CDATA
mpm@selenic.com
parents: 626
diff changeset
4 <description><![CDATA[#desc|escape|addbreaks#]]></description>
599
765182a4c843 [PATCH] Add RSS support to hgweb
mpm@selenic.com
parents:
diff changeset
5 <author>#author|obfuscate#</author>
765182a4c843 [PATCH] Add RSS support to hgweb
mpm@selenic.com
parents:
diff changeset
6 <pubDate>#date|rfc822date#</pubDate>>
765182a4c843 [PATCH] Add RSS support to hgweb
mpm@selenic.com
parents:
diff changeset
7 </item>