# HG changeset patch # User Yuya Nishihara # Date 1526036910 -32400 # Node ID 69381a28b45640fef484e71482a5896ebe5ad163 # Parent 326b174c6a4790a5f282300b38ffc8bc6a727b62 test-hgweb: add test for foo-bar name lookup This is broken since f83cb91b052e "revset: pass in lookup function instead of repo (API)." diff -r 326b174c6a47 -r 69381a28b456 tests/test-hgweb-commands.t --- 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 @@ bookmark - something + some-thing tag @@ -267,7 +267,7 @@ bookmark - something + some-thing tag @@ -770,7 +770,7 @@ test branch commit with null character: - draft unstable tip something + draft unstable tip some-thing @@ -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 @@ branch commit with null character: - draft unstable tip something + draft unstable tip some-thing @@ -1654,7 +1667,7 @@ Thu, 01 Jan 1970 00:00:00 +0000 - something + some-thing changeset | changelog | @@ -1782,7 +1795,7 @@ branch commit with null character: - draft unstable tip something + draft unstable tip some-thing
1970-01-01, by test
@@ -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)