comparison 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
comparison
equal deleted inserted replaced
11677:8f8a7976f4bc 11678:f5aa20e177c0
281 echo % revert a 281 echo % revert a
282 hg revert --no-backup --rev tip a 282 hg revert --no-backup --rev tip a
283 echo % cat a 283 echo % cat a
284 cat a 284 cat a
285 285
286 echo % clone
287 cd ..
288
289 echo % expansion in dest
290 hg --quiet clone Test globalconf
291 cat globalconf/a
292 echo % no expansion in dest
293 hg --quiet --config 'keyword.**=ignore' clone Test localconf
294 cat localconf/a
295
286 echo % clone to test incoming 296 echo % clone to test incoming
287 cd ..
288 hg clone -r1 Test Test-a 297 hg clone -r1 Test Test-a
289 cd Test-a 298 cd Test-a
290 cat <<EOF >> .hg/hgrc 299 cat <<EOF >> .hg/hgrc
291 [paths] 300 [paths]
292 default = ../Test 301 default = ../Test