##// END OF EJS Templates
hgweb: add archive entries to graph page...
av6 -
r38501:5faaa31a default
parent child Browse files
Show More
@@ -1370,6 +1370,7 b' def graph(web):'
1370 jsdata=templateutil.mappinggenerator(jsdata),
1370 jsdata=templateutil.mappinggenerator(jsdata),
1371 nodes=templateutil.mappinggenerator(nodes),
1371 nodes=templateutil.mappinggenerator(nodes),
1372 node=ctx.hex(),
1372 node=ctx.hex(),
1373 archives=web.archivelist('tip'),
1373 changenav=changenav)
1374 changenav=changenav)
1374
1375
1375 def _getdoc(e):
1376 def _getdoc(e):
@@ -21,7 +21,7 b' graph |'
21 <a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a> |
21 <a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a> |
22 <a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a> |
22 <a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a> |
23 <a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a> |
23 <a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a> |
24 <a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a> |
24 <a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a>{archives%archiveentry} |
25 <a href="{url|urlescape}help{sessionvars%urlparameter}">help</a>
25 <a href="{url|urlescape}help{sessionvars%urlparameter}">help</a>
26 <br/>
26 <br/>
27 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
27 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
@@ -20,6 +20,7 b''
20 <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
20 <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
21 <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li>
21 <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li>
22 <li><a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a></li>
22 <li><a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a></li>
23 {archives%archiveentry}
23 <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
24 <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
24 </ul>
25 </ul>
25 </div>
26 </div>
@@ -25,6 +25,9 b''
25 <li><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">browse</a></li>
25 <li><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">browse</a></li>
26 </ul>
26 </ul>
27 <ul>
27 <ul>
28 {archives%archiveentry}
29 </ul>
30 <ul>
28 <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
31 <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
29 </ul>
32 </ul>
30 <div class="atom-logo">
33 <div class="atom-logo">
@@ -263,6 +263,9 b' Some tests for hgweb in an empty reposit'
263 <li><a href="/file/tip">browse</a></li>
263 <li><a href="/file/tip">browse</a></li>
264 </ul>
264 </ul>
265 <ul>
265 <ul>
266
267 </ul>
268 <ul>
266 <li><a href="/help">help</a></li>
269 <li><a href="/help">help</a></li>
267 </ul>
270 </ul>
268 <div class="atom-logo">
271 <div class="atom-logo">
@@ -56,6 +56,7 b' Set up the repo'
56 <li><a href="/shortlog/tip?style=paper">log</a></li>
56 <li><a href="/shortlog/tip?style=paper">log</a></li>
57 <li><a href="/rev/tip?style=paper">changeset</a></li>
57 <li><a href="/rev/tip?style=paper">changeset</a></li>
58 <li><a href="/file/tip?style=paper">browse</a></li>
58 <li><a href="/file/tip?style=paper">browse</a></li>
59 <a href="/archive/tip.zip">zip</a>
59 <a href="/graph/tip?revcount=30&style=paper">less</a>
60 <a href="/graph/tip?revcount=30&style=paper">less</a>
60 <a href="/graph/tip?revcount=120&style=paper">more</a>
61 <a href="/graph/tip?revcount=120&style=paper">more</a>
61 | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
62 | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
@@ -122,6 +123,7 b' Set up the repo'
122 <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
123 <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
123 <li><a href="/rev/xyzzy?style=paper">changeset</a></li>
124 <li><a href="/rev/xyzzy?style=paper">changeset</a></li>
124 <li><a href="/file/xyzzy?style=paper">browse</a></li>
125 <li><a href="/file/xyzzy?style=paper">browse</a></li>
126 <a href="/archive/xyzzy.zip">zip</a>
125 <a href="/graph/xyzzy?revcount=30&style=paper">less</a>
127 <a href="/graph/xyzzy?revcount=30&style=paper">less</a>
126 <a href="/graph/xyzzy?revcount=120&style=paper">more</a>
128 <a href="/graph/xyzzy?revcount=120&style=paper">more</a>
127 | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
129 | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
@@ -254,6 +256,7 b' Set up the repo'
254 <li><a href="/shortlog/tip?style=coal">log</a></li>
256 <li><a href="/shortlog/tip?style=coal">log</a></li>
255 <li><a href="/rev/tip?style=coal">changeset</a></li>
257 <li><a href="/rev/tip?style=coal">changeset</a></li>
256 <li><a href="/file/tip?style=coal">browse</a></li>
258 <li><a href="/file/tip?style=coal">browse</a></li>
259 <a href="/archive/tip.zip">zip</a>
257 <a href="/graph/tip?revcount=30&style=coal">less</a>
260 <a href="/graph/tip?revcount=30&style=coal">less</a>
258 <a href="/graph/tip?revcount=120&style=coal">more</a>
261 <a href="/graph/tip?revcount=120&style=coal">more</a>
259 | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
262 | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
@@ -320,6 +323,7 b' Set up the repo'
320 <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
323 <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
321 <li><a href="/rev/xyzzy?style=coal">changeset</a></li>
324 <li><a href="/rev/xyzzy?style=coal">changeset</a></li>
322 <li><a href="/file/xyzzy?style=coal">browse</a></li>
325 <li><a href="/file/xyzzy?style=coal">browse</a></li>
326 <a href="/archive/xyzzy.zip">zip</a>
323 <a href="/graph/xyzzy?revcount=30&style=coal">less</a>
327 <a href="/graph/xyzzy?revcount=30&style=coal">less</a>
324 <a href="/graph/xyzzy?revcount=120&style=coal">more</a>
328 <a href="/graph/xyzzy?revcount=120&style=coal">more</a>
325 | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
329 | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
@@ -485,7 +489,7 b' Set up the repo'
485 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=gitweb' | egrep $REVLINKS
489 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=gitweb' | egrep $REVLINKS
486 <a href="/shortlog/tip?style=gitweb">shortlog</a> |
490 <a href="/shortlog/tip?style=gitweb">shortlog</a> |
487 <a href="/log/tip?style=gitweb">changelog</a> |
491 <a href="/log/tip?style=gitweb">changelog</a> |
488 <a href="/file/tip?style=gitweb">files</a> |
492 <a href="/file/tip?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> |
489 <a href="/graph/tip?revcount=30&style=gitweb">less</a>
493 <a href="/graph/tip?revcount=30&style=gitweb">less</a>
490 <a href="/graph/tip?revcount=120&style=gitweb">more</a>
494 <a href="/graph/tip?revcount=120&style=gitweb">more</a>
491 | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
495 | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
@@ -577,7 +581,7 b' Set up the repo'
577 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=gitweb' | egrep $REVLINKS
581 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=gitweb' | egrep $REVLINKS
578 <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> |
582 <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> |
579 <a href="/log/xyzzy?style=gitweb">changelog</a> |
583 <a href="/log/xyzzy?style=gitweb">changelog</a> |
580 <a href="/file/xyzzy?style=gitweb">files</a> |
584 <a href="/file/xyzzy?style=gitweb">files</a> | <a href="/archive/xyzzy.zip">zip</a> |
581 <a href="/graph/xyzzy?revcount=30&style=gitweb">less</a>
585 <a href="/graph/xyzzy?revcount=30&style=gitweb">less</a>
582 <a href="/graph/xyzzy?revcount=120&style=gitweb">more</a>
586 <a href="/graph/xyzzy?revcount=120&style=gitweb">more</a>
583 | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
587 | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
@@ -725,6 +729,7 b' Set up the repo'
725
729
726 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS
730 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS
727 <li><a href="/file/tip?style=monoblue">files</a></li>
731 <li><a href="/file/tip?style=monoblue">files</a></li>
732 <li><a href="/archive/tip.zip">zip</a></li>
728 <a href="/rev/9d8c40cba617?style=monoblue">third</a>
733 <a href="/rev/9d8c40cba617?style=monoblue">third</a>
729 <a href="/rev/a7c1559b7bba?style=monoblue">second</a>
734 <a href="/rev/a7c1559b7bba?style=monoblue">second</a>
730 <a href="/rev/43c799df6e75?style=monoblue">first</a>
735 <a href="/rev/43c799df6e75?style=monoblue">first</a>
@@ -806,6 +811,7 b' Set up the repo'
806
811
807 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS
812 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS
808 <li><a href="/file/xyzzy?style=monoblue">files</a></li>
813 <li><a href="/file/xyzzy?style=monoblue">files</a></li>
814 <li><a href="/archive/xyzzy.zip">zip</a></li>
809 <a href="/rev/a7c1559b7bba?style=monoblue">second</a>
815 <a href="/rev/a7c1559b7bba?style=monoblue">second</a>
810 <a href="/rev/43c799df6e75?style=monoblue">first</a>
816 <a href="/rev/43c799df6e75?style=monoblue">first</a>
811 <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a>
817 <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a>
General Comments 0
You need to be logged in to leave comments. Login now