mercurial/patch.py
changeset 10884 4fb1bafd43e7
parent 10818 d14d45fae927
parent 10883 196908117c27
child 10905 13a1b2fb7ef2
--- a/mercurial/patch.py	Fri Apr 09 17:23:37 2010 -0500
+++ b/mercurial/patch.py	Sun Apr 11 20:59:55 2010 -0700
@@ -47,6 +47,9 @@
         if inheader and line[0] in (' ', '\t'):
             # continuation
             return True
+        if line[0] in (' ', '-', '+'):
+            # diff line - don't check for header pattern in there
+            return False
         l = line.split(': ', 1)
         return len(l) == 2 and ' ' not in l[0]