tests/test-keyword
branchkwmap-templates
changeset 151 5f3856a6ce56
parent 148 c0baa881d90a
--- a/tests/test-keyword	Sat Feb 24 11:19:34 2007 +0100
+++ b/tests/test-keyword	Sat Feb 24 11:56:08 2007 +0100
@@ -6,6 +6,7 @@
 [keyword]
 a =
 b = ignore
+c = archive
 EOF
 
 echo % help
@@ -15,27 +16,36 @@
 cd Test
 echo 'expand $Id$' > a
 echo 'ignore $Id$' > b
+echo 'archive $Id$' > c
 ln -s a sym
 echo % cat
-cat sym a b
+cat a b c sym
 
 echo % default keyword expansion
 echo % commit
-hg --debug commit -A -mabsym -d '0 0' -u 'User Name <user@example.com>'
+hg --debug commit -A -mabcsym -d '0 0' -u 'User Name <user@example.com>'
 echo % status
 hg status
 
 echo % cat
-cat sym a b
+cat a b c sym
 echo % hg cat
-hg cat sym a b
+hg cat a b c sym
 
 echo
-rm sym a b
+rm a b c sym
 echo % update
 hg update
 echo % cat
-cat sym a b
+cat a b c sym
+
+echo % archive
+hg archive ../Archive
+cd ../Archive
+echo % cat
+cat a b c sym
+echo
+cd -
 
 echo % custom keyword expansion
 cat <<EOF >>$HGRCPATH
@@ -45,9 +55,9 @@
 EOF
 
 echo % cat
-cat sym a b
+cat a b c sym
 echo % hg cat
-hg cat sym a b
+hg cat a b c sym
 
 echo
 echo '$Xinfo$' >> a
@@ -63,9 +73,9 @@
 hg status
 
 echo % cat
-cat sym a b
+cat a b c sym
 echo % hg cat
-hg cat sym a b
+hg cat a b c sym
 
 echo
 cd ..
@@ -83,14 +93,14 @@
 
 cd ../Test
 echo % cat
-cat sym a b
+cat a b c sym
 echo % hg cat
-hg cat sym a b
+hg cat a b c sym
 
 echo
 echo % update
-rm sym a b
+rm a b c sym
 hg update
 
 echo % cat
-cat sym a b
+cat a b c sym