--- 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