tests/test-transplant
changeset 8173 d3fb413667e5
parent 8167 6c82beaaa11a
child 8518 3f4f14eab085
--- a/tests/test-transplant	Sat Apr 25 21:27:47 2009 +0800
+++ b/tests/test-transplant	Fri Apr 24 17:00:18 2009 -0500
@@ -114,3 +114,22 @@
 echo % tranplant
 hg transplant -m 1
 cd ..
+
+echo '% test transplant into empty repository'
+hg init empty
+cd empty
+hg transplant -s ../t -b tip -a
+cd ..
+
+echo '% test filter'
+hg init filter
+cd filter
+cat <<'EOF' >test-filter
+#!/bin/sh
+sed 's/r1/r2/' $1 > $1.new
+mv $1.new $1
+EOF
+chmod +x test-filter
+hg transplant -s ../t -b tip -a --filter ./test-filter |\
+    sed 's/filtering.*/filtering/g'
+hg log --template '{rev} {parents} {desc}\n'