Detect git patches in patchbomb makepatch function
authorBrendan Cully <brendan@kublai.com>
Wed, 30 Aug 2006 12:55:10 -0700
changeset 3051 51b7f792e473
parent 3028 eba7c78c80fe
child 3052 efd26ceedafb
Detect git patches in patchbomb makepatch function
hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -140,7 +140,9 @@ def patchbomb(ui, repo, *revs, **opts):
             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