Mercurial > hg
comparison tests/test-hgweb-commands.t @ 28711:06ae7a6daad0
hgweb: sort bookmarks in revlog order of their nodes
Changes, branches and tags are already in revlog order on /summary, /branches
and /tags, let's now make bookmarks be sorted by the same principle. It's more
helpful to show more "recent" bookmarks on top. This will affect /bookmarks
page in all styles, including atom, rss and raw, and also /summary page.
Bookmarks are sorted using a (revision number, bookmark name) tuple.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 31 Mar 2016 15:22:06 +0800 |
parents | 91ac8cb79125 |
children | 6b77adc2c7b5 |
comparison
equal
deleted
inserted
replaced
28710:ca0c0ca30c62 | 28711:06ae7a6daad0 |
---|---|
1494 stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe inactive | 1494 stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe inactive |
1495 default a4f92ed23982be056b9852de5dfe873eaac7f0de inactive | 1495 default a4f92ed23982be056b9852de5dfe873eaac7f0de inactive |
1496 $ get-with-headers.py 127.0.0.1:$HGPORT 'raw-bookmarks' | 1496 $ get-with-headers.py 127.0.0.1:$HGPORT 'raw-bookmarks' |
1497 200 Script output follows | 1497 200 Script output follows |
1498 | 1498 |
1499 something cad8025a2e87f88c06259790adfa15acb4080123 | |
1499 anotherthing 2ef0ac749a14e4f57a5a822464a0902c6f7f448f | 1500 anotherthing 2ef0ac749a14e4f57a5a822464a0902c6f7f448f |
1500 something cad8025a2e87f88c06259790adfa15acb4080123 | |
1501 $ get-with-headers.py 127.0.0.1:$HGPORT 'summary/?style=gitweb' | 1501 $ get-with-headers.py 127.0.0.1:$HGPORT 'summary/?style=gitweb' |
1502 200 Script output follows | 1502 200 Script output follows |
1503 | 1503 |
1504 <?xml version="1.0" encoding="ascii"?> | 1504 <?xml version="1.0" encoding="ascii"?> |
1505 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 1505 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
1629 <div><a class="title" href="/bookmarks?style=gitweb">bookmarks</a></div> | 1629 <div><a class="title" href="/bookmarks?style=gitweb">bookmarks</a></div> |
1630 <table cellspacing="0"> | 1630 <table cellspacing="0"> |
1631 | 1631 |
1632 <tr class="parity0"> | 1632 <tr class="parity0"> |
1633 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> | 1633 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> |
1634 <td><a class="list" href="/rev/something?style=gitweb"><b>something</b></a></td> | |
1635 <td class="link"> | |
1636 <a href="/rev/cad8025a2e87?style=gitweb">changeset</a> | | |
1637 <a href="/log/cad8025a2e87?style=gitweb">changelog</a> | | |
1638 <a href="/file/cad8025a2e87?style=gitweb">files</a> | |
1639 </td> | |
1640 </tr> | |
1641 <tr class="parity1"> | |
1642 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> | |
1634 <td><a class="list" href="/rev/anotherthing?style=gitweb"><b>anotherthing</b></a></td> | 1643 <td><a class="list" href="/rev/anotherthing?style=gitweb"><b>anotherthing</b></a></td> |
1635 <td class="link"> | 1644 <td class="link"> |
1636 <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> | | 1645 <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> | |
1637 <a href="/log/2ef0ac749a14?style=gitweb">changelog</a> | | 1646 <a href="/log/2ef0ac749a14?style=gitweb">changelog</a> | |
1638 <a href="/file/2ef0ac749a14?style=gitweb">files</a> | 1647 <a href="/file/2ef0ac749a14?style=gitweb">files</a> |
1639 </td> | |
1640 </tr> | |
1641 <tr class="parity1"> | |
1642 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> | |
1643 <td><a class="list" href="/rev/something?style=gitweb"><b>something</b></a></td> | |
1644 <td class="link"> | |
1645 <a href="/rev/cad8025a2e87?style=gitweb">changeset</a> | | |
1646 <a href="/log/cad8025a2e87?style=gitweb">changelog</a> | | |
1647 <a href="/file/cad8025a2e87?style=gitweb">files</a> | |
1648 </td> | 1648 </td> |
1649 </tr> | 1649 </tr> |
1650 <tr class="light"><td colspan="3"><a class="list" href="/bookmarks?style=gitweb">...</a></td></tr> | 1650 <tr class="light"><td colspan="3"><a class="list" href="/bookmarks?style=gitweb">...</a></td></tr> |
1651 </table> | 1651 </table> |
1652 | 1652 |