diff hgext/mq.py @ 10731:71cf11f03b3d

Merge with stable
author Brendan Cully <brendan@kublai.com>
date Thu, 18 Mar 2010 14:36:24 -0700
parents 2c2b2d384a47 4d6bd7b8b6d8
children 68a7b9ed3c71
line wrap: on
line diff
--- a/hgext/mq.py	Thu Mar 18 16:32:03 2010 +0100
+++ b/hgext/mq.py	Thu Mar 18 14:36:24 2010 -0700
@@ -88,13 +88,11 @@
 
         for line in file(pf):
             line = line.rstrip()
-            if line.startswith('diff --git'):
+            if (line.startswith('diff --git')
+                or (diffstart and line.startswith('+++ '))):
                 diffstart = 2
                 break
-            if diffstart:
-                if line.startswith('+++ '):
-                    diffstart = 2
-                break
+            diffstart = 0 # reset
             if line.startswith("--- "):
                 diffstart = 1
                 continue