diff tests/test-keyword @ 11678:f5aa20e177c0 stable

keyword: move collecting of [keyword] patterns to reposetup (issue2303) When cloning, prevent [keyword] filename patterns configured locally in the source directory to persist during the update in the destination. a) move [keyword] retrieval (back) to reposetup b) remove the corresponding global kwtools attributes Add test cases.
author Christian Ebert <blacktrash@gmx.net>
date Sun, 25 Jul 2010 20:01:33 -0500
parents 56f306238256
children
line wrap: on
line diff
--- a/tests/test-keyword	Wed Jul 21 22:22:28 2010 +0200
+++ b/tests/test-keyword	Sun Jul 25 20:01:33 2010 -0500
@@ -283,8 +283,17 @@
 echo % cat a
 cat a
 
+echo % clone
+cd ..
+
+echo % expansion in dest
+hg --quiet clone Test globalconf
+cat globalconf/a
+echo % no expansion in dest
+hg --quiet --config 'keyword.**=ignore' clone Test localconf
+cat localconf/a
+
 echo % clone to test incoming
-cd ..
 hg clone -r1 Test Test-a
 cd Test-a
 cat <<EOF >> .hg/hgrc