diff tests/test-import.out @ 10501:a27af7229850 stable

import: if in doubt, consume stream until start of diff This prevents a header-like line in the message body from causing a spurious split.
author Brendan Cully <brendan@kublai.com>
date Thu, 18 Feb 2010 10:46:01 -0800
parents 832f35386067
children 3212afb33116
line wrap: on
line diff
--- a/tests/test-import.out	Thu Feb 18 10:32:51 2010 +0100
+++ b/tests/test-import.out	Thu Feb 18 10:46:01 2010 -0800
@@ -314,3 +314,20 @@
 description
 
 
+% tricky header splitting
+applying ../trickyheaders.patch
+# HG changeset patch
+# User User B
+# Date 0 0
+# Node ID eb56ab91903632294ac504838508cb370c0901d2
+# Parent  0000000000000000000000000000000000000000
+from: tricky!
+
+That is not a header.
+
+diff --git a/foo b/foo
+new file mode 100644
+--- /dev/null
++++ b/foo
+@@ -0,0 +1,1 @@
++foo