Mercurial > hg
changeset 37853:69381a28b456 stable
test-hgweb: add test for foo-bar name lookup
This is broken since f83cb91b052e "revset: pass in lookup function instead
of repo (API)."
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 11 May 2018 20:08:30 +0900 |
parents | 326b174c6a47 |
children | edb28a6d95b7 |
files | tests/test-hgweb-commands.t |
diffstat | 1 files changed, 23 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Tue May 08 14:17:46 2018 -0700 +++ b/tests/test-hgweb-commands.t Fri May 11 20:08:30 2018 +0900 @@ -17,7 +17,7 @@ adding da/foo adding foo $ hg tag 1.0 - $ hg bookmark something + $ hg bookmark some-thing $ hg bookmark -r0 anotherthing $ echo another > foo $ hg branch stable @@ -87,7 +87,7 @@ </tr> <tr> <th style="text-align:left;">bookmark</th> - <td>something</td> + <td>some-thing</td> </tr> <tr> <th style="text-align:left;">tag</th> @@ -267,7 +267,7 @@ </tr> <tr> <th style="text-align:left;">bookmark</th> - <td>something</td> + <td>some-thing</td> </tr> <tr> <th style="text-align:left;">tag</th> @@ -770,7 +770,7 @@ <td class="author">test</td> <td class="description"> <a href="/rev/cad8025a2e87">branch commit with null character: </a> - <span class="phase">draft</span> <span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span> + <span class="phase">draft</span> <span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">some-thing</span> </td> </tr> <tr> @@ -1192,7 +1192,7 @@ summary: branch commit with null character: \x00 (esc) branch: unstable tag: tip - bookmark: something + bookmark: some-thing changeset: 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe revision: 2 @@ -1228,6 +1228,19 @@ +Revset query with foo-bar bookmark (issue5879) + + $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=some-thing%25anotherthing&style=raw' + 200 Script output follows + + + # HG changesets search + # Node ID cad8025a2e87f88c06259790adfa15acb4080123 + # Query "some-thing%anotherthing" + # Mode literal keyword search + + + File-related $ get-with-headers.py $LOCALIP:$HGPORT 'file/1/foo/?style=raw' @@ -1515,7 +1528,7 @@ $ get-with-headers.py $LOCALIP:$HGPORT 'raw-bookmarks' 200 Script output follows - something cad8025a2e87f88c06259790adfa15acb4080123 + some-thing cad8025a2e87f88c06259790adfa15acb4080123 anotherthing 2ef0ac749a14e4f57a5a822464a0902c6f7f448f $ get-with-headers.py $LOCALIP:$HGPORT 'summary/?style=gitweb' 200 Script output follows @@ -1581,7 +1594,7 @@ <td> <a class="list" href="/rev/cad8025a2e87?style=gitweb"> <b>branch commit with null character: </b> - <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span> + <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="some-thing">some-thing</span> </span> </a> </td> <td class="link" nowrap> @@ -1654,7 +1667,7 @@ <tr class="parity0"> <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td> - <td><a class="list" href="/rev/something?style=gitweb"><b>something</b></a></td> + <td><a class="list" href="/rev/some-thing?style=gitweb"><b>some-thing</b></a></td> <td class="link"> <a href="/rev/cad8025a2e87?style=gitweb">changeset</a> | <a href="/log/cad8025a2e87?style=gitweb">changelog</a> | @@ -1782,7 +1795,7 @@ <span class="desc"> <a class="list" href="/rev/cad8025a2e87?style=gitweb"><b>branch commit with null character: </b></a> </span> - <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span> + <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="some-thing">some-thing</span> </span> <div class="info">1970-01-01, by test</div> </div> </li> @@ -1871,7 +1884,7 @@ summary: branch commit with null character: \x00 (esc) branch: unstable tag: tip - bookmark: something + bookmark: some-thing node: (0, 0) (color 1) edge: (0, 0) -> (0, 1) (color 1)