Mercurial > hg > mercurial-crew-with-dirclash
annotate templates/gitweb/filelog.tmpl @ 4095:6fa7a2d0fc2e
hgweb: catch util.Abort raised by addchangegroup
Right now, if a pretxnchangegroup hook fails, we send some HTML
error message to the client and the transaction is not rolled back
(issue499).
Catching util.Abort allows us to send a decent message to the client
and for some reason makes the rollback complete.
This patch is not perfect since it doesn't fix the reason why the
transaction wasn't rolled back (maybe some circular references?).
Also, the transaction is aborted only after we've sent the response
back to the client and the "transaction aborted" message ends up in
the logs of the web server.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 16 Feb 2007 05:10:43 -0200 |
parents | 03e7e8958a27 |
children | 2ee0e935f86d |
rev | line source |
---|---|
1572
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
1 #header# |
1668
586b50294ea8
[hgweb] Added rename information to gitweb templates & misc cleanups
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1650
diff
changeset
|
2 <title>#repo|escape#: File revisions</title> |
1576
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
3 <link rel="alternate" type="application/rss+xml" |
3270
36fa5db79dd5
hgweb: convert gitweb to NWI
Brendan Cully <brendan@kublai.com>
parents:
3226
diff
changeset
|
4 href="{url}rss-log" title="RSS feed for #repo|escape#"> |
1576
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
5 </head> |
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
6 <body> |
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
7 |
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
8 <div class="page_header"> |
3363
ce8f31e0b3b8
hgweb: Apply the new method of passing session variables to links.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
3350
diff
changeset
|
9 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="{url}summary{sessionvars%urlparameter}">#repo|escape#</a> / file revisions |
1572
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
10 </div> |
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
11 |
1576
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
12 <div class="page_nav"> |
3363
ce8f31e0b3b8
hgweb: Apply the new method of passing session variables to links.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
3350
diff
changeset
|
13 <a href="{url}summary{sessionvars%urlparameter}">summary</a> | |
ce8f31e0b3b8
hgweb: Apply the new method of passing session variables to links.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
3350
diff
changeset
|
14 <a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a> | |
ce8f31e0b3b8
hgweb: Apply the new method of passing session variables to links.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
3350
diff
changeset
|
15 <a href="{url}log{sessionvars%urlparameter}">changelog</a> | |
ce8f31e0b3b8
hgweb: Apply the new method of passing session variables to links.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
3350
diff
changeset
|
16 <a href="{url}tags{sessionvars%urlparameter}">tags</a> | |
ce8f31e0b3b8
hgweb: Apply the new method of passing session variables to links.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
3350
diff
changeset
|
17 <a href="{url}file/{node|short}/#file|urlescape#{sessionvars%urlparameter}">file</a> | |
3270
36fa5db79dd5
hgweb: convert gitweb to NWI
Brendan Cully <brendan@kublai.com>
parents:
3226
diff
changeset
|
18 revisions | |
3363
ce8f31e0b3b8
hgweb: Apply the new method of passing session variables to links.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
3350
diff
changeset
|
19 <a href="{url}annotate/{node|short}/#file|urlescape#{sessionvars%urlparameter}">annotate</a> | |
ce8f31e0b3b8
hgweb: Apply the new method of passing session variables to links.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
3350
diff
changeset
|
20 <a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | |
3270
36fa5db79dd5
hgweb: convert gitweb to NWI
Brendan Cully <brendan@kublai.com>
parents:
3226
diff
changeset
|
21 <a href="{url}rss-log/#node|short#/#file|urlescape#">rss</a><br/> |
3406
03e7e8958a27
hgweb: hoist changenav up, and use it in the filelog
Brendan Cully <brendan@kublai.com>
parents:
3363
diff
changeset
|
22 |
03e7e8958a27
hgweb: hoist changenav up, and use it in the filelog
Brendan Cully <brendan@kublai.com>
parents:
3363
diff
changeset
|
23 <br/> |
03e7e8958a27
hgweb: hoist changenav up, and use it in the filelog
Brendan Cully <brendan@kublai.com>
parents:
3363
diff
changeset
|
24 {nav%filenaventry}<br/> |
1576
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
25 </div> |
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
26 |
2012
d07c322e0033
add missing filename title to gitweb's filelog page
TK Soh <teekaysoh@yahoo.com>
parents:
1668
diff
changeset
|
27 <div class="title" >#file|urlescape#</div> |
d07c322e0033
add missing filename title to gitweb's filelog page
TK Soh <teekaysoh@yahoo.com>
parents:
1668
diff
changeset
|
28 |
1576
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
29 <table> |
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
30 #entries%filelogentry# |
145cc9f68c05
File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
1572
diff
changeset
|
31 </table> |
1572
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
32 |
385b8872b8e3
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
33 #footer# |