changeset 3054:51b7f792e473

Detect git patches in patchbomb makepatch function
author Brendan Cully <brendan@kublai.com>
date Wed, 30 Aug 2006 12:55:10 -0700
parents eba7c78c80fe
children efd26ceedafb
files hgext/patchbomb.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py	Wed Aug 30 10:21:02 2006 -0700
+++ b/hgext/patchbomb.py	Wed Aug 30 12:55:10 2006 -0700
@@ -140,7 +140,9 @@
             if line.startswith('#'):
                 if line.startswith('# Node ID'): node = line.split()[-1]
                 continue
-            if line.startswith('diff -r'): break
+            if (line.startswith('diff -r')
+                or line.startswith('diff --git')):
+                break
             desc.append(line)
         if not node: raise ValueError