Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb-commands.t @ 38931:5caee9f923ae stable
hgweb: catch ParseError that's raised by revset.match()
Some queries, like the demonstrated "first(::)", fail earlier than we call
mfunc(), and that results in a "500 Internal Server Error". To prevent it,
revset.match() also needs to be in a try-except block.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 09 Aug 2018 13:04:52 +0800 |
parents | edb28a6d95b7 |
children | c3491d3f8984 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Fri Aug 03 15:09:19 2018 -0400 +++ b/tests/test-hgweb-commands.t Thu Aug 09 13:04:52 2018 +0800 @@ -1227,6 +1227,16 @@ # Mode literal keyword search + $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=first(::)&style=raw' + 200 Script output follows + + + # HG changesets search + # Node ID cad8025a2e87f88c06259790adfa15acb4080123 + # Query "first(::)" + # Mode literal keyword search + + Revset query with foo-bar bookmark (issue5879)