tests/test-import
changeset 9328 648d6a1a1cf2
parent 8523 5b7da468531b
child 9576 c156bf947e26
child 9591 012f1244cd4c
--- a/tests/test-import	Thu Aug 06 21:35:58 2009 -0700
+++ b/tests/test-import	Fri Aug 07 19:27:54 2009 -0700
@@ -332,3 +332,16 @@
 EOF
 hg import --no-commit a.patch
 cd ..
+
+echo '% create file when source is not /dev/null'
+cat > create.patch <<EOF
+diff -Naur proj-orig/foo proj-new/foo
+--- proj-orig/foo       1969-12-31 16:00:00.000000000 -0800
++++ proj-new/foo        2009-07-17 16:50:45.801368000 -0700
+@@ -0,0 +1,1 @@
++a
+EOF
+hg init oddcreate
+cd oddcreate
+hg import --no-commit ../create.patch
+cat foo