Show More
@@ -129,6 +129,7 b' class hgweb:' | |||||
129 | "date": (lambda x: time.asctime(time.gmtime(x))), |
|
129 | "date": (lambda x: time.asctime(time.gmtime(x))), | |
130 | "addbreaks": nl2br, |
|
130 | "addbreaks": nl2br, | |
131 | "obfuscate": obfuscate, |
|
131 | "obfuscate": obfuscate, | |
|
132 | "short": (lambda x: x[:12]), | |||
132 | "firstline": (lambda x: x.splitlines(1)[0]), |
|
133 | "firstline": (lambda x: x.splitlines(1)[0]), | |
133 | "permissions": (lambda x: x and "-rwxr-xr-x" or "-rw-r--r--") |
|
134 | "permissions": (lambda x: x and "-rwxr-xr-x" or "-rw-r--r--") | |
134 | } |
|
135 | } |
@@ -5,7 +5,7 b'' | |||||
5 | <td><b>#desc|firstline|escape#</b></td></tr> |
|
5 | <td><b>#desc|firstline|escape#</b></td></tr> | |
6 | <tr> |
|
6 | <tr> | |
7 | <td align="right">changeset #rev#: </td> |
|
7 | <td align="right">changeset #rev#: </td> | |
8 | <td><a href="?cmd=changeset;node=#node#">#node#</a></td></tr> |
|
8 | <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr> | |
9 | #parent1# |
|
9 | #parent1# | |
10 | #parent2# |
|
10 | #parent2# | |
11 | <tr> |
|
11 | <tr> |
@@ -1,5 +1,5 b'' | |||||
1 | #header# |
|
1 | #header# | |
2 | <title>#repo|escape#: changeset #node#</title> |
|
2 | <title>#repo|escape#: changeset #node|short#</title> | |
3 | </head> |
|
3 | </head> | |
4 | <body> |
|
4 | <body> | |
5 |
|
5 | |||
@@ -15,12 +15,12 b'' | |||||
15 | <table> |
|
15 | <table> | |
16 | <tr> |
|
16 | <tr> | |
17 | <td class="metatag">changeset #rev#:</td> |
|
17 | <td class="metatag">changeset #rev#:</td> | |
18 | <td><a href="?cmd=changeset;node=#node#">#node#</a></td></tr> |
|
18 | <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr> | |
19 | #parent1# |
|
19 | #parent1# | |
20 | #parent2# |
|
20 | #parent2# | |
21 | <tr> |
|
21 | <tr> | |
22 | <td class="metatag">manifest:</td> |
|
22 | <td class="metatag">manifest:</td> | |
23 | <td><a href="?cmd=manifest;manifest=#manifest#;path=/">#manifest#</a></td></tr> |
|
23 | <td><a href="?cmd=manifest;manifest=#manifest#;path=/">#manifest|short#</a></td></tr> | |
24 | <tr> |
|
24 | <tr> | |
25 | <td class="metatag">author:</td> |
|
25 | <td class="metatag">author:</td> | |
26 | <td>#author|obfuscate#</td></tr> |
|
26 | <td>#author|obfuscate#</td></tr> |
@@ -12,17 +12,17 b'' | |||||
12 | <a href="?cmd=filelog;file=#file#;filenode=#filenode#">revisions</a> |
|
12 | <a href="?cmd=filelog;file=#file#;filenode=#filenode#">revisions</a> | |
13 | </div> |
|
13 | </div> | |
14 |
|
14 | |||
15 | <h2>Annotate #file# (#filenode#)</h2> |
|
15 | <h2>Annotate #file# (#filenode|short#)</h2> | |
16 |
|
16 | |||
17 | <table> |
|
17 | <table> | |
18 | <tr> |
|
18 | <tr> | |
19 | <td class="metatag">changeset #rev#:</td> |
|
19 | <td class="metatag">changeset #rev#:</td> | |
20 | <td><a href="?cmd=changeset;node=#node#">#node#</a></td></tr> |
|
20 | <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr> | |
21 | #parent1# |
|
21 | #parent1# | |
22 | #parent2# |
|
22 | #parent2# | |
23 | <tr> |
|
23 | <tr> | |
24 | <td class="metatag">manifest:</td> |
|
24 | <td class="metatag">manifest:</td> | |
25 | <td><a href="?cmd=manifest;manifest=#manifest#;path=/">#manifest#</a></td></tr> |
|
25 | <td><a href="?cmd=manifest;manifest=#manifest#;path=/">#manifest|short#</a></td></tr> | |
26 | <tr> |
|
26 | <tr> | |
27 | <td class="metatag">author:</td> |
|
27 | <td class="metatag">author:</td> | |
28 | <td>#author|obfuscate#</td></tr> |
|
28 | <td>#author|obfuscate#</td></tr> |
@@ -18,10 +18,10 b'' | |||||
18 | <table> |
|
18 | <table> | |
19 | <tr> |
|
19 | <tr> | |
20 | <td class="metatag">revision #rev#:</td> |
|
20 | <td class="metatag">revision #rev#:</td> | |
21 | <td><a href="?cmd=changeset;node=#node#">#node#</a></td></tr> |
|
21 | <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr> | |
22 | <tr> |
|
22 | <tr> | |
23 | <td class="metatag">parent #p1rev#:</td> |
|
23 | <td class="metatag">parent #p1rev#:</td> | |
24 | <td><a href="?cmd=changeset;node=#p1#">#p1#</a></td></tr> |
|
24 | <td><a href="?cmd=changeset;node=#p1#">#p1|short#</a></td></tr> | |
25 | </table> |
|
25 | </table> | |
26 |
|
26 | |||
27 | <pre> |
|
27 | <pre> |
@@ -4,7 +4,7 b'' | |||||
4 | <td><b><a href="?cmd=changeset;node=#node#">#desc|firstline|escape#</a></b></td></tr> |
|
4 | <td><b><a href="?cmd=changeset;node=#node#">#desc|firstline|escape#</a></b></td></tr> | |
5 | <tr> |
|
5 | <tr> | |
6 | <td align="right">revision #filerev#: </td> |
|
6 | <td align="right">revision #filerev#: </td> | |
7 | <td><a href="?cmd=file;file=#file#;filenode=#filenode#">#filenode#</a> |
|
7 | <td><a href="?cmd=file;file=#file#;filenode=#filenode#">#filenode|short#</a> | |
8 | <a href="?cmd=filediff;file=#file#;node=#node#">(diff)</a> |
|
8 | <a href="?cmd=filediff;file=#file#;node=#node#">(diff)</a> | |
9 | <a href="?cmd=annotate;file=#file#;filenode=#filenode#">(annotate)</a> |
|
9 | <a href="?cmd=annotate;file=#file#;filenode=#filenode#">(annotate)</a> | |
10 | </td></tr> |
|
10 | </td></tr> |
@@ -13,17 +13,17 b'' | |||||
13 | <a href="?cmd=file;file=#file#;filenode=#filenode#;style=raw">raw</a> |
|
13 | <a href="?cmd=file;file=#file#;filenode=#filenode#;style=raw">raw</a> | |
14 | </div> |
|
14 | </div> | |
15 |
|
15 | |||
16 | <h2>#file# (revision #filenode#)</h2> |
|
16 | <h2>#file# (revision #filenode|short#)</h2> | |
17 |
|
17 | |||
18 | <table> |
|
18 | <table> | |
19 | <tr> |
|
19 | <tr> | |
20 | <td class="metatag">changeset #rev#:</td> |
|
20 | <td class="metatag">changeset #rev#:</td> | |
21 | <td><a href="?cmd=changeset;node=#node#">#node#</a></td></tr> |
|
21 | <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr> | |
22 | #parent1# |
|
22 | #parent1# | |
23 | #parent2# |
|
23 | #parent2# | |
24 | <tr> |
|
24 | <tr> | |
25 | <td class="metatag">manifest:</td> |
|
25 | <td class="metatag">manifest:</td> | |
26 | <td><a href="?cmd=manifest;manifest=#manifest#;path=/">#manifest#</a></td></tr> |
|
26 | <td><a href="?cmd=manifest;manifest=#manifest#;path=/">#manifest|short#</a></td></tr> | |
27 | <tr> |
|
27 | <tr> | |
28 | <td class="metatag">author:</td> |
|
28 | <td class="metatag">author:</td> | |
29 | <td>#author|obfuscate#</td></tr> |
|
29 | <td>#author|obfuscate#</td></tr> |
@@ -1,5 +1,5 b'' | |||||
1 | #header# |
|
1 | #header# | |
2 | <title>#repo|escape#: manifest #manifest#</title> |
|
2 | <title>#repo|escape#: manifest #manifest|short#</title> | |
3 | </head> |
|
3 | </head> | |
4 | <body> |
|
4 | <body> | |
5 |
|
5 | |||
@@ -9,7 +9,7 b'' | |||||
9 | <a href="?cmd=changeset;node=#node#">changeset</a> |
|
9 | <a href="?cmd=changeset;node=#node#">changeset</a> | |
10 | </div> |
|
10 | </div> | |
11 |
|
11 | |||
12 | <h2>manifest: #path#</h2> |
|
12 | <h2>manifest #manifest|short#: #path#</h2> | |
13 |
|
13 | |||
14 | <table cellpadding="0" cellspacing="0"> |
|
14 | <table cellpadding="0" cellspacing="0"> | |
15 | <tr class="parity1"> |
|
15 | <tr class="parity1"> |
@@ -21,10 +21,10 b' difflineplus = "<span class="plusline">#' | |||||
21 | difflineminus = "<span class="minusline">#line|escape#</span>" |
|
21 | difflineminus = "<span class="minusline">#line|escape#</span>" | |
22 | difflineat = "<span class="atline">#line|escape#</span>" |
|
22 | difflineat = "<span class="atline">#line|escape#</span>" | |
23 | diffline = "#line|escape#" |
|
23 | diffline = "#line|escape#" | |
24 | changelogparent = "<tr><td align="right">parent: </td><td><a href="?cmd=changeset;node=#node#">#node#</a></td></tr>" |
|
24 | changelogparent = "<tr><td align="right">parent: </td><td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>" | |
25 | changesetparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=changeset;node=#node#">#node#</a></td></tr>" |
|
25 | changesetparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=changeset;node=#node#">#node#</a></td></tr>" | |
26 | filerevparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=file;file=#file#;filenode=#node#">#node#</a></td></tr>" |
|
26 | filerevparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=file;file=#file#;filenode=#node#">#node|short#</a></td></tr>" | |
27 | fileannotateparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=annotate;file=#file#;filenode=#node#">#node#</a></td></tr>" |
|
27 | fileannotateparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=annotate;file=#file#;filenode=#node#">#node|short#</a></td></tr>" | |
28 | tags = tags.tmpl |
|
28 | tags = tags.tmpl | |
29 | tagentry = "<div class="parity#parity#"><tt>#node#</tt> <a href="?cmd=changeset;node=#node#">#tag#</a><br /></div>" |
|
29 | tagentry = "<div class="parity#parity#"><tt>#node#</tt> <a href="?cmd=changeset;node=#node#">#tag#</a><br /></div>" | |
30 | diffblock = "<div class="parity#parity#">#lines#</div>" |
|
30 | diffblock = "<div class="parity#parity#">#lines#</div>" |
General Comments 0
You need to be logged in to leave comments.
Login now