changeset 10731 | 71cf11f03b3d |
parent 10615 | 3bb438ce4458 |
parent 10729 | 7a5931c5f2dc |
child 10744 | d794ea113834 |
--- a/mercurial/patch.py Thu Mar 18 16:32:03 2010 +0100 +++ b/mercurial/patch.py Thu Mar 18 14:36:24 2010 -0700 @@ -178,7 +178,8 @@ # (this heuristic is borrowed from quilt) diffre = re.compile(r'^(?:Index:[ \t]|diff[ \t]|RCS file: |' r'retrieving revision [0-9]+(\.[0-9]+)*$|' - r'(---|\*\*\*)[ \t])', re.MULTILINE) + r'(---|\*\*\*)[ \t].*?' + r'^(\+\+\+|\*\*\*)[ \t])', re.MULTILINE|re.DOTALL) fd, tmpname = tempfile.mkstemp(prefix='hg-patch-') tmpfp = os.fdopen(fd, 'w')