Mercurial > hg
diff tests/test-hgweb-empty.t @ 25606:3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Let's make paper (and coal, since it borrows so much from paper) templates use
symbolic revision in navigation links.
The majority of links (log, filelog, annotate, etc) still use node hashes.
Some pages don't have permanent links to current node hash (so it's not very
easy to go from /rev/tip to /rev/<tip hash>), this will be addressed in future
patches.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 16 Jun 2015 16:07:39 +0800 |
parents | 4d2b9b304ad0 |
children | 63be46407a50 |
line wrap: on
line diff
--- a/tests/test-hgweb-empty.t Tue Jun 16 14:37:53 2015 +0800 +++ b/tests/test-hgweb-empty.t Tue Jun 16 16:07:39 2015 +0800 @@ -33,14 +33,14 @@ </div> <ul> <li class="active">log</li> - <li><a href="/graph/000000000000">graph</a></li> + <li><a href="/graph/tip">graph</a></li> <li><a href="/tags">tags</a></li> <li><a href="/bookmarks">bookmarks</a></li> <li><a href="/branches">branches</a></li> </ul> <ul> - <li><a href="/rev/000000000000">changeset</a></li> - <li><a href="/file/000000000000">browse</a></li> + <li><a href="/rev/tip">changeset</a></li> + <li><a href="/file/tip">browse</a></li> </ul> <ul> @@ -67,8 +67,8 @@ </form> <div class="navigate"> - <a href="/shortlog/-1?revcount=30">less</a> - <a href="/shortlog/-1?revcount=120">more</a> + <a href="/shortlog/tip?revcount=30">less</a> + <a href="/shortlog/tip?revcount=120">more</a> | rev -1: </div> @@ -86,8 +86,8 @@ </table> <div class="navigate"> - <a href="/shortlog/-1?revcount=30">less</a> - <a href="/shortlog/-1?revcount=120">more</a> + <a href="/shortlog/tip?revcount=30">less</a> + <a href="/shortlog/tip?revcount=120">more</a> | rev -1: </div> @@ -144,14 +144,14 @@ </div> <ul> <li class="active">log</li> - <li><a href="/graph/000000000000">graph</a></li> + <li><a href="/graph/tip">graph</a></li> <li><a href="/tags">tags</a></li> <li><a href="/bookmarks">bookmarks</a></li> <li><a href="/branches">branches</a></li> </ul> <ul> - <li><a href="/rev/000000000000">changeset</a></li> - <li><a href="/file/000000000000">browse</a></li> + <li><a href="/rev/tip">changeset</a></li> + <li><a href="/file/tip">browse</a></li> </ul> <ul> @@ -178,8 +178,8 @@ </form> <div class="navigate"> - <a href="/shortlog/-1?revcount=5">less</a> - <a href="/shortlog/-1?revcount=20">more</a> + <a href="/shortlog/tip?revcount=5">less</a> + <a href="/shortlog/tip?revcount=20">more</a> | rev -1: </div> @@ -197,8 +197,8 @@ </table> <div class="navigate"> - <a href="/shortlog/-1?revcount=5">less</a> - <a href="/shortlog/-1?revcount=20">more</a> + <a href="/shortlog/tip?revcount=5">less</a> + <a href="/shortlog/tip?revcount=20">more</a> | rev -1: </div> @@ -253,15 +253,15 @@ <img src="/static/hglogo.png" alt="mercurial" /></a> </div> <ul> - <li><a href="/shortlog/000000000000">log</a></li> + <li><a href="/shortlog/tip">log</a></li> <li class="active">graph</li> <li><a href="/tags">tags</a></li> <li><a href="/bookmarks">bookmarks</a></li> <li><a href="/branches">branches</a></li> </ul> <ul> - <li><a href="/rev/000000000000">changeset</a></li> - <li><a href="/file/000000000000">browse</a></li> + <li><a href="/rev/tip">changeset</a></li> + <li><a href="/file/tip">browse</a></li> </ul> <ul> <li><a href="/help">help</a></li> @@ -285,8 +285,8 @@ </form> <div class="navigate"> - <a href="/graph/-1?revcount=30">less</a> - <a href="/graph/-1?revcount=120">more</a> + <a href="/graph/tip?revcount=30">less</a> + <a href="/graph/tip?revcount=120">more</a> | rev -1: </div> @@ -355,8 +355,8 @@ </script> <div class="navigate"> - <a href="/graph/-1?revcount=30">less</a> - <a href="/graph/-1?revcount=120">more</a> + <a href="/graph/tip?revcount=30">less</a> + <a href="/graph/tip?revcount=120">more</a> | rev -1: </div> @@ -402,14 +402,14 @@ <img src="/static/hglogo.png" alt="mercurial" /></a> </div> <ul> - <li><a href="/shortlog/000000000000">log</a></li> - <li><a href="/graph/000000000000">graph</a></li> + <li><a href="/shortlog/tip">log</a></li> + <li><a href="/graph/tip">graph</a></li> <li><a href="/tags">tags</a></li> <li><a href="/bookmarks">bookmarks</a></li> <li><a href="/branches">branches</a></li> </ul> <ul> - <li><a href="/rev/000000000000">changeset</a></li> + <li><a href="/rev/tip">changeset</a></li> <li class="active">browse</li> </ul> <ul> @@ -441,7 +441,7 @@ </thead> <tbody class="stripes2"> <tr class="fileline"> - <td class="name"><a href="/file/000000000000/">[up]</a></td> + <td class="name"><a href="/file/tip/">[up]</a></td> <td class="size"></td> <td class="permissions">drwxr-xr-x</td> </tr>