--- a/tests/test-import Wed Oct 07 22:50:20 2009 +0200
+++ b/tests/test-import Fri Oct 09 00:29:39 2009 +0200
@@ -345,3 +345,24 @@
cd oddcreate
hg import --no-commit ../create.patch
cat foo
+cd ..
+
+echo % 'first line mistaken for email headers (issue 1859)'
+hg init emailconfusion
+cd emailconfusion
+cat > a.patch <<EOF
+module: summary
+
+description
+
+
+diff -r 000000000000 -r 9b4c1e343b55 test.txt
+--- /dev/null
++++ b/a
+@@ -0,0 +1,1 @@
++a
+EOF
+hg import -d '0 0' a.patch
+hg parents -v
+cd ..
+