Mercurial > public > mercurial-scm > hg
diff hgext/patchbomb.py @ 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 | 5a17423f88d7 |
children | f422c8265ae5 |
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