tests/test-keyword
changeset 668 13a6a2c0440f
parent 653 f4b2fe9d23df
child 669 f077a5dc5b63
--- a/tests/test-keyword	Wed Dec 23 12:04:04 2009 +0000
+++ b/tests/test-keyword	Wed Dec 23 12:04:17 2009 +0000
@@ -5,6 +5,7 @@
 hgext.keyword =
 hgext.mq =
 hgext.notify =
+hgext.transplant =
 EOF
 
 # demo before [keyword] files are set up
@@ -337,6 +338,23 @@
 hg commit -m localresolve
 cat m
 
+echo % test restricted mode with transplant -b
+hg update 6
+hg branch foo
+mv a a.bak
+echo foobranch > a
+cat a.bak >> a
+rm a.bak
+hg commit -m 9foobranch
+hg update default
+hg -y transplant -b foo tip
+echo % no expansion in changeset
+hg tip -p
+echo % expansion in file
+head -n 2 a
+hg -q rollback
+hg -q update -C
+
 echo % switch off expansion
 echo % kwshrink with unknown file u
 cp a u