diff tests/test-hgrc @ 7044:e51c0f41f271

Escape '%' when writing to hgrc (issue1199) Fixes clone with paths containing '%'. Patch provided by mjc.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 20 Sep 2008 15:00:58 +0200
parents 7a7d4937272b
children ba75830d17a9
line wrap: on
line diff
--- a/tests/test-hgrc	Thu Sep 18 13:55:58 2008 +0200
+++ b/tests/test-hgrc	Sat Sep 20 15:00:58 2008 +0200
@@ -5,3 +5,14 @@
 hg init
 echo "invalid" > .hg/hgrc
 hg status 2>&1 |sed -e "s:/.*\(/t/.*\):...\1:"
+
+#issue 1199, escaping
+
+cd ..
+hg init "foo%bar"
+hg clone "foo%bar" foobar
+p=`pwd`
+cd foobar
+cat .hg/hgrc |sed -e "s:$p:...:"
+hg paths |sed -e "s:$p:...:"
+hg showconfig |sed -e "s:$p:...:"