Mercurial > hg > mercurial-crew-with-dirclash
annotate templates/filelogentry.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 | e5d769afd3ef |
children | 17703aa4491e |
rev | line source |
---|---|
154
1d5f799ebe1e
fixed problem with head/body tags, added dtd, fixed table attributes
jake@edge2.net
parents:
142
diff
changeset
|
1 <table class="parity#parity#" width="100%" cellspacing="0" cellpadding="0"> |
138 | 2 <tr> |
201
f918a6fa2572
hgweb: add template filters, template style maps, and raw pages
mpm@selenic.com
parents:
167
diff
changeset
|
3 <td align="right" width="15%"><b>#date|age# ago: </b></td> |
233
33c48b635690
Add missing > to </td> in templates.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
201
diff
changeset
|
4 <td><b><a href="?cmd=changeset;node=#node#">#desc|firstline|escape#</a></b></td></tr> |
138 | 5 <tr> |
167 | 6 <td align="right">revision #filerev#: </td> |
375 | 7 <td><a href="?cmd=file;file=#file#;filenode=#filenode#">#filenode|short#</a> |
138 | 8 <a href="?cmd=filediff;file=#file#;node=#node#">(diff)</a> |
9 <a href="?cmd=annotate;file=#file#;filenode=#filenode#">(annotate)</a> | |
10 </td></tr> | |
11 <tr> | |
154
1d5f799ebe1e
fixed problem with head/body tags, added dtd, fixed table attributes
jake@edge2.net
parents:
142
diff
changeset
|
12 <td align="right">author: </td> |
201
f918a6fa2572
hgweb: add template filters, template style maps, and raw pages
mpm@selenic.com
parents:
167
diff
changeset
|
13 <td>#author|obfuscate#</td></tr> |
138 | 14 <tr> |
154
1d5f799ebe1e
fixed problem with head/body tags, added dtd, fixed table attributes
jake@edge2.net
parents:
142
diff
changeset
|
15 <td align="right">date: </td> |
201
f918a6fa2572
hgweb: add template filters, template style maps, and raw pages
mpm@selenic.com
parents:
167
diff
changeset
|
16 <td>#date|date# (#date|age# ago)</td></tr> |
142 | 17 </table> |
138 | 18 |
19 |