test-command-template: glob out detailed "invalid escape" message
Python 3 also reports the position where an invalid escape found.
--- a/contrib/python3-whitelist Thu Mar 01 08:14:54 2018 -0500
+++ b/contrib/python3-whitelist Thu Mar 01 18:25:19 2018 -0500
@@ -36,6 +36,7 @@
test-clone-pull-corruption.t
test-clone-r.t
test-clone-update-order.t
+test-command-template.t
test-commit-amend.t
test-commit-unresolved.t
test-commit.t
--- a/tests/test-command-template.t Thu Mar 01 08:14:54 2018 -0500
+++ b/tests/test-command-template.t Thu Mar 01 18:25:19 2018 -0500
@@ -4438,7 +4438,7 @@
hg: parse error: trailing \ in string
[255]
$ hg log -T "\\xy" -R a
- hg: parse error: invalid \x escape
+ hg: parse error: invalid \x escape* (glob)
[255]
json filter should escape HTML tags so that the output can be embedded in hgweb: