tests/test-import
changeset 7247 c4461ea8b4c8
parent 6758 87c704ac92d4
child 7402 bffdab64dfbb
--- a/tests/test-import	Sun Oct 26 14:02:32 2008 +0100
+++ b/tests/test-import	Sun Oct 26 17:26:28 2008 +0100
@@ -20,6 +20,18 @@
 hg --cwd b tip | grep someone
 rm -r b
 
+echo % import exported patch with external patcher
+cat > dummypatch.py <<EOF
+print 'patching file a'
+file('a', 'wb').write('line2\n')
+EOF
+chmod +x dummypatch.py
+hg clone -r0 a b
+hg --cwd a export tip > tip.patch
+hg --config ui.patch='python ../dummypatch.py' --cwd b import ../tip.patch
+cat b/a
+rm -r b
+
 echo % import of plain diff should fail without message
 hg clone -r0 a b
 hg --cwd a diff -r0:1 > tip.patch