##// END OF EJS Templates
[hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek -
r1572:385b8872 default
parent child Browse files
Show More
@@ -0,0 +1,30 b''
1 #header#
2 <title>#repo|escape#: Changelog</title>
3 <link rel="alternate" type="application/rss+xml"
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
5 </head>
6 <body>
7
8 <div class="page_header">
9 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / changelog
10 </div>
11
12 <form action="#">
13 <div class="search">
14 <input type="hidden" name="repo" value="#repo#" />
15 <input type="hidden" name="style" value="gitweb" />
16 <input type="hidden" name="cmd" value="changelog" />
17 <input type="text" name="rev" />
18 </div>
19 </form>
20 </div>
21
22 <div class="page_nav">
23 <a href="?cmd=summary;style=gitweb">summary</a> | changelog | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
24 <br/>
25 #changenav%naventry#<br/>
26 </div>
27
28 #entries%changelogentry#
29
30 #footer#
@@ -0,0 +1,14 b''
1 <div>
2 <a class="title" href="?cmd=changeset;node=#node#;style=gitweb"><span class="age">#date|age# ago</span>#desc|firstline|escape#</a>
3 </div>
4 <div class="title_text">
5 <div class="log_link">
6 <a href="?cmd=changeset;node=#node#;style=gitweb">changeset</a><br/>
7 </div>
8 <i>#author|obfuscate# [#date|rfc822date#]</i><br/>
9 </div>
10 <div class="log_body">
11 #desc|addbreaks#
12 <br/>
13 <br/>
14 </div>
@@ -0,0 +1,40 b''
1 #header#
2 <title>#repo|escape#: Changeset</title>
3 <link rel="alternate" type="application/rss+xml"
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
5 </head>
6 <body>
7
8 <div class="page_header">
9 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / changeset
10 </div>
11
12 <div class="page_nav">
13 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;rev=#rev#;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a> | changeset | <a href="?cmd=changeset;node=#node#;style=raw">raw</a><br/>
14 </div>
15
16 <div>
17 <a class="title" href="?cmd=changeset;node=#node#;style=raw">#desc|escape|firstline#</a>
18 </div>
19 <div class="title_text">
20 <table cellspacing="0">
21 <tr><td>author</td><td>#author|obfuscate#</td></tr>
22 <tr><td></td><td>#date|date# (#date|age# ago)</td></tr>
23 <tr><td>changeset</td><td style="font-family:monospace">#node|short#</td></tr>
24 <tr><td>manifest</td><td style="font-family:monospace"><a class="list" href="?cmd=manifest;manifest=#manifest|short#;path=/;style=gitweb">#manifest|short#</a></td></tr>
25 #parent%changesetparent#
26 #changesettag#
27 </table></div>
28
29 <div class="title_text">
30 #desc|addbreaks#
31 </div>
32
33 <div class="title_text">
34 <table cellspacing="0">
35 #files#
36 </table></div>
37
38 <div class="page_body">#diff#</div>
39
40 #footer#
@@ -0,0 +1,12 b''
1 #header#
2 <div class="page_nav">
3 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">log</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
4 </div>
5
6 <div>
7 <br/>
8 <i>Error parsing query string</i><br/>
9 <br/>
10 </div>
11
12 #footer#
@@ -0,0 +1,43 b''
1 #header#
2 <title>#repo|escape#: Annotate</title>
3 <link rel="alternate" type="application/rss+xml"
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
5 </head>
6 <body>
7
8 <div class="page_header">
9 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / annotate
10 </div>
11
12 <div class="page_nav">
13 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=#path#;style=gitweb">manifest</a> | <a href="?cmd=changeset;node=#node#;style=gitweb">changeset</a> | <a href="?cmd=file;file=#file#;filenode=#filenode#;style=gitweb">file</a> | <a href="?cmd=filelog;file=#file#;filenode=#filenode#;style=gitweb">revisions</a> | annotate<br/>
14 </div>
15
16 <h2>Annotate #file# (#filenode|short#)</h2>
17
18 <table>
19 <tr>
20 <td class="metatag">changeset #rev#:</td>
21 <td><a href="?cmd=changeset;node=#node#;style=gitweb">#node|short#</a></td></tr>
22 #parent%fileannotateparent#
23 <tr>
24 <td class="metatag">manifest:</td>
25 <td><a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">#manifest|short#</a></td></tr>
26 <tr>
27 <td class="metatag">author:</td>
28 <td>#author|obfuscate#</td></tr>
29 <tr>
30 <td class="metatag">date:</td>
31 <td>#date|date# (#date|age# ago)</td></tr>
32 <tr>
33 <td class="metatag">permissions:</td>
34 <td>#permissions|permissions#</td></tr>
35 </table>
36
37 <br/>
38
39 <table cellspacing="0" cellpadding="0">
40 #annotate%annotateline#
41 </table>
42
43 #footer#
@@ -0,0 +1,9 b''
1 #header#
2 <div class="page_nav">
3 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">log</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=file;file=#file#;filenode=#filenode#;style=gitweb">file</a> | <a href="?cmd=annotate;file=#file#;filenode=#filenode#;style=gitweb">annotate</a><br/>
4 </div>
5
6 <!--FIXME: the entries have wrong format -->
7 #entries#
8
9 #footer#
@@ -0,0 +1,22 b''
1 #header#
2 <title>#repo|escape#: File revision</title>
3 <link rel="alternate" type="application/rss+xml"
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
5 </head>
6 <body>
7
8 <div class="page_header">
9 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / file revision
10 </div>
11
12 <div class="page_nav">
13 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=#path#;style=gitweb">manifest</a> | <a href="?cmd=changeset;node=#node#;style=gitweb">changeset</a> | file | <a href="?cmd=filelog;file=#file#;filenode=#filenode#;style=gitweb">revisions</a> | <a href="?cmd=annotate;file=#file#;filenode=#filenode#;style=gitweb">annotate</a> | <a href="?cmd=file;file=#file#;filenode=#filenode#;style=raw">raw</a><br/>
14 </div>
15
16 <div><a class="title" href="?cmd=FIXME;style=gitweb">#desc|firstline|escape#</a></div>
17 <div class="page_path"><b>#file#</b></div>
18 <div class="page_body">
19 #text#
20 </div>
21
22 #footer#
@@ -0,0 +1,6 b''
1 <div class="page_footer">
2 <div class="page_footer_text">#repo|escape#</div>
3 <a class="rss_logo" href="?cmd=changelog;style=rss">RSS</a>
4 </div>
5 </body>
6 </html>
@@ -0,0 +1,59 b''
1 Content-type: text/html
2
3 <?xml version="1.0" encoding="utf-8"?>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
6 <head>
7 <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
8 <meta name="robots" content="index, nofollow"/>
9 <style type="text/css">
10 body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; }
11 a { color:#0000cc; }
12 a:hover, a:visited, a:active { color:#880000; }
13 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
14 div.page_header a:visited { color:#0000cc; }
15 div.page_header a:hover { color:#880000; }
16 div.page_nav { padding:8px; }
17 div.page_nav a:visited { color:#0000cc; }
18 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
19 div.page_footer { height:17px; padding:4px 8px; background-color: #d9d8d1; }
20 div.page_footer_text { float:left; color:#555555; font-style:italic; }
21 div.page_body { padding:8px; }
22 div.title, a.title {
23 display:block; padding:6px 8px;
24 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
25 }
26 a.title:hover { background-color: #d9d8d1; }
27 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
28 div.log_body { padding:8px 8px 8px 150px; }
29 span.age { position:relative; float:left; width:142px; font-style:italic; }
30 div.log_link {
31 padding:0px 8px;
32 font-size:10px; font-family:sans-serif; font-style:normal;
33 position:relative; float:left; width:136px;
34 }
35 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
36 a.list { text-decoration:none; color:#000000; }
37 a.list:hover { text-decoration:underline; color:#880000; }
38 table { padding:8px 4px; }
39 th { padding:2px 5px; font-size:12px; text-align:left; }
40 tr.light:hover, tr.parity0:hover { background-color:#edece6; }
41 tr.dark, tr.parity1 { background-color:#f6f6f0; }
42 tr.dark:hover, tr.parity1:hover { background-color:#edece6; }
43 td { padding:2px 5px; font-size:12px; vertical-align:top; }
44 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
45 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
46 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
47 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
48 div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
49 a.linenr { color:#999999; text-decoration:none }
50 a.rss_logo {
51 float:right; padding:3px 0px; width:35px; line-height:10px;
52 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
53 color:#ffffff; background-color:#ff6600;
54 font-weight:bold; font-family:sans-serif; font-size:10px;
55 text-align:center; text-decoration:none;
56 }
57 a.rss_logo:hover { background-color:#ee5500; }
58 </style>
59
@@ -0,0 +1,27 b''
1 #header#
2 <title>#repo|escape#: Manifest</title>
3 <link rel="alternate" type="application/rss+xml"
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
5 </head>
6 <body>
7
8 <div class="page_header">
9 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / manifest
10 </div>
11
12 <div class="page_nav">
13 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | manifest | <a href="http://FIXME">changeset</a><br/>
14 </div>
15
16 <div class="title" >#path|escape#</div>
17 <div class="page_body">
18 <table cellspacing="0">
19 <tr class="light">
20 <td style="font-family:monospace">drwxr-xr-x</td>
21 <td><a href="?cmd=manifest;manifest=#manifest#;path=#up#;style=gitweb">[up]</a></td>
22 <td class="link">&nbsp;</td>
23 </tr>
24 #dentries%manifestdirentry#
25 #fentries%manifestfileentry#
26 </table>
27 #footer#
@@ -0,0 +1,42 b''
1 default = "summary"
2 header = header-gitweb.tmpl
3 footer = footer-gitweb.tmpl
4 search = search-gitweb.tmpl
5 changelog = changelog-gitweb.tmpl
6 summary = summary-gitweb.tmpl
7 error = error-gitweb.tmpl
8 naventry = "<a href="?cmd=changelog;rev=#rev#;style=gitweb">#label#</a> "
9 navshortentry = "<a href="?cmd=shortlog;rev=#rev#;style=gitweb">#label#</a> "
10 filedifflink = "<a href="?cmd=filediff;node=#node#;file=#file#;style=gitweb">#file#</a> "
11 filenodelink = "<tr class="light"><td><a class="list" href="">#file#</a></td><td></td><td class="link"><a href="?cmd=file;filenode=#filenode#;file=#file#;style=gitweb">file</a> | <a href="http://FIXME">diff</a> | <a href="http://FIXME">revisions</a></td></tr>"
12 fileellipses = "..."
13 changelogentry = changelogentry-gitweb.tmpl
14 searchentry = changelogentry-gitweb.tmpl
15 changeset = changeset-gitweb.tmpl
16 manifest = manifest-gitweb.tmpl
17 manifestdirentry = "<tr class="parity#parity#"><td style="font-family:monospace">drwxr-xr-x</td><td><a href="?mf=#manifest|short#;path=#path#;style=gitweb">#basename#/</a></td><td class="link"><a href="?mf=#manifest|short#;path=#path#;style=gitweb">manifest</a></td></tr>"
18 manifestfileentry = "<tr class="parity#parity#"><td style="font-family:monospace">#permissions|permissions#</td><td class="list"><a class="list" href="?f=#filenode|short#;file=#file#;style=gitweb">#basename#</a></td><td class="link"><a href="?f=#filenode|short#;file=#file#;style=gitweb">file</a> | <a href="?fl=#filenode|short#;file=#file#;style=gitweb">revisions</a> | <a href="?fa=#filenode|short#;file=#file#;style=gitweb">annotate</a></td></tr>"
19 filerevision = filerevision-gitweb.tmpl
20 fileannotate = fileannotate-gitweb.tmpl
21 filediff = filediff-gitweb.tmpl
22 filelog = filelog-gitweb.tmpl
23 fileline = "<div class="pre"><a id="l#linenumber#" href="#l#linenumber#" class="linenr"> #linenumber#</a> #line|escape#</div>"
24 filelogentry = filelogentry-gitweb.tmpl
25 annotateline = "<tr class="parity#parity#"><td class="annotate"><a href="?cmd=changeset;node=#node#;style=gitweb">#author|obfuscate#@#rev#</a></td><td><pre>#line|escape#</pre></td></tr>"
26 difflineplus = "<div class="pre" style="color:#008800;">#line|escape#</div>"
27 difflineminus = "<div class="pre" style="color:#cc0000;">#line|escape#</div>"
28 difflineat = "<div class="pre" style="color:#990099;">#line|escape#</div>"
29 diffline = "<div class="pre">#line|escape#</div>"
30 changelogparent = "<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="?cmd=changeset;node=#node#;style=gitweb">#node|short#</a></td></tr>"
31 changesetparent = "<tr><td>parent</td><td style="font-family:monospace"><a class="list" href="?cmd=changeset;node=#node|short#;style=gitweb">#node|short#</a></td></tr>"
32 filerevparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=file;file=#file#;filenode=#node#;style=gitweb">#node|short#</a></td></tr>"
33 fileannotateparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=annotate;file=#file#;filenode=#node#;style=gitweb">#node|short#</a></td></tr>"
34 tags = tags-gitweb.tmpl
35 tagentry = "<tr class="parity#parity#"><td><i>#date|age# ago</i></td><td><a class="list" href="?cmd=changeset;node=#node|short#;style=gitweb"><b>#tag#</b></a></td><td class="link"><a href="?cmd=changeset;node=#node|short#;style=gitweb">changeset</a> | <a href="?cmd=changelog;rev=#node|short#;style=gitweb">changelog</a> | <a href="?cmd=manifest;manifest=#manifest|short#;path=/;style=gitweb">manifest</a></td></tr>"
36 diffblock = "#lines#"
37 changelogtag = "<tr><th class="tag">tag:</th><td class="tag">#tag#</td></tr>"
38 changesettag = "<tr><td>tag</td><td>#tag#</td></tr>"
39 filediffparent = "<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="?cmd=changeset;node=#node#;style=gitweb">#node|short#</a></td></tr>"
40 filelogparent = "<tr><td align="right">parent #rev#:&nbsp;</td><td><a href="?cmd=file;file=#file#;filenode=#node#;style=gitweb">#node|short#</a></td></tr>"
41 shortlog = shortlog-gitweb.tmpl
42 shortlogentry = "<tr class="parity#parity#"><td><i>#date|age# ago</i></td><td><a class="list" href="?cmd=changeset;node=#node|short#;style=gitweb"><b>#desc|firstline|escape#</b></a></td><td class="link"><a href="?cmd=changeset;node=#node|short#;style=gitweb">changeset</a> | <a href="?cmd=manifest;manifest=#manifest|short#;path=/;style=gitweb">manifest</a></td></tr>"
@@ -0,0 +1,24 b''
1 #header#
2 <div class="page_nav">
3 <a href="?cmd=summary;style=gitweb">summary</a> | log | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
4 </div>
5
6 <h2>searching for #query|escape#</h2>
7
8 <form>
9 search:
10 <input type="hidden" name="cmd" value="changelog">
11 <input type="hidden" name="style" value="gitweb">
12 <input name="rev" type="text" width="30" value="#query|escape#">
13 </form>
14
15 #entries#
16
17 <form>
18 search:
19 <input type="hidden" name="cmd" value="changelog">
20 <input type="hidden" name="style" value="gitweb">
21 <input name="rev" type="text" width="30">
22 </form>
23
24 #footer#
@@ -0,0 +1,13 b''
1 #header#
2
3 <div class="page_nav">
4 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">log</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
5
6 #changenav%naventry#<br/>
7 </div>
8
9 <table cellspacing="0">
10 #entries#
11 </table>
12
13 #footer#
@@ -0,0 +1,34 b''
1 #header#
2 <title>#repo|escape#: Summary</title>
3 <link rel="alternate" type="application/rss+xml"
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
5 </head>
6 <body>
7
8 <div class="page_header">
9 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / summary
10 </div>
11 <div class="page_nav">
12 summary | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
13 </div>
14
15 <div class="title">&nbsp;</div>
16 <table cellspacing="0">
17 <tr><td>description</td><td>#desc#</td></tr>
18 <tr><td>owner</td><td>#owner#</td></tr>
19 <!-- <tr><td>last change</td><td>#lastchange|rfc822date#</td></tr> -->
20 </table>
21
22 <div><a class="title" href="?cmd=changelog;style=gitweb">changes</a></div>
23 <table cellspacing="0">
24 #shortlog#
25 <tr class="light"><td colspan="3"><a class="list" href="?cmd=changelog;rev=;style=gitweb">...</a></td></tr>
26 </table>
27
28 <div><a class="title" href="?cmd=tags;style=gitweb">tags</a></div>
29 <table cellspacing="0">
30 #tags#
31 <tr class="light"><td colspan="3"><a class="list" href="?cmd=tags;style=gitweb">...</a></td></tr>
32 </table>
33
34 #footer#
@@ -0,0 +1,21 b''
1 #header#
2 <title>#repo|escape#: Tags</title>
3 <link rel="alternate" type="application/rss+xml"
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
5 </head>
6 <body>
7
8 <div class="page_header">
9 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / tags
10 </div>
11
12 <div class="page_nav">
13 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;rev=#rev#;style=gitweb">changelog</a> | tags | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a>
14 <br/>
15 </div>
16
17 <table cellspacing="0">
18 #entries%tagentry#
19 </table>
20
21 #footer#
@@ -632,6 +632,7 b' class hgweb(object):'
632 for k,n in i:
632 for k,n in i:
633 yield {"parity": parity,
633 yield {"parity": parity,
634 "tag": k,
634 "tag": k,
635 "date": cl.read(n)[2],
635 "node": hex(n)}
636 "node": hex(n)}
636 parity = 1 - parity
637 parity = 1 - parity
637
638
@@ -639,6 +640,76 b' class hgweb(object):'
639 manifest=hex(mf),
640 manifest=hex(mf),
640 entries=entries)
641 entries=entries)
641
642
643 def summary(self):
644 cl = self.repo.changelog
645 mf = cl.read(cl.tip())[0]
646
647 i = self.repo.tagslist()
648 i.reverse()
649
650 def tagentries(**map):
651 parity = 0
652 count = 0
653 for k,n in i:
654 if k == "tip": # skip tip
655 continue;
656
657 count += 1
658 if count > 10: # limit to 10 tags
659 break;
660
661 c = cl.read(n)
662 m = c[0]
663 t = c[2]
664
665 yield self.t("tagentry",
666 parity = parity,
667 tag = k,
668 node = hex(n),
669 date = t,
670 manifest = hex(m))
671 parity = 1 - parity
672
673 def changelist(**map):
674 parity = 0
675 cl = self.repo.changelog
676 l = [] # build a list in forward order for efficiency
677 for i in range(start, end):
678 n = cl.node(i)
679 changes = cl.read(n)
680 hn = hex(n)
681 t = changes[2]
682
683 l.insert(0, self.t(
684 'shortlogentry',
685 parity = parity,
686 author = changes[1],
687 manifest = hex(changes[0]),
688 desc = changes[4],
689 date = t,
690 rev = i,
691 node = hn))
692 parity = 1 - parity
693
694 yield l
695
696 cl = self.repo.changelog
697 mf = cl.read(cl.tip())[0]
698 count = cl.count()
699 start = max(0, count - self.maxchanges)
700 end = min(count, start + self.maxchanges)
701 pos = end - 1
702
703 yield self.t("summary",
704 desc = self.repo.ui.config("web", "description", "unknown"),
705 owner = (self.repo.ui.config("ui", "username") or # preferred
706 self.repo.ui.config("web", "contact") or # deprecated
707 self.repo.ui.config("web", "author", "unknown")), # also
708 lastchange = (0, 0), # FIXME
709 manifest = hex(mf),
710 tags = tagentries,
711 shortlog = changelist)
712
642 def filediff(self, file, changeset):
713 def filediff(self, file, changeset):
643 cl = self.repo.changelog
714 cl = self.repo.changelog
644 n = self.repo.lookup(changeset)
715 n = self.repo.lookup(changeset)
@@ -798,6 +869,9 b' class hgweb(object):'
798 elif req.form['cmd'][0] == 'tags':
869 elif req.form['cmd'][0] == 'tags':
799 req.write(self.tags())
870 req.write(self.tags())
800
871
872 elif req.form['cmd'][0] == 'summary':
873 req.write(self.summary())
874
801 elif req.form['cmd'][0] == 'filediff':
875 elif req.form['cmd'][0] == 'filediff':
802 req.write(self.filediff(req.form['file'][0], req.form['node'][0]))
876 req.write(self.filediff(req.form['file'][0], req.form['node'][0]))
803
877
General Comments 0
You need to be logged in to leave comments. Login now