diff tests/test-transplant @ 8173:d3fb413667e5

transplant: remove the restriction that the destination be nonempty. Test fixed by Patrick Mezard <pmezard@gmail.com>
author Jacob Lee <artdent@gmail.com>
date Fri, 24 Apr 2009 17:00:18 -0500
parents 6c82beaaa11a
children 3f4f14eab085
line wrap: on
line diff
--- 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'