comparison mercurial/patch.py @ 15089:bfe903b1ff4e

merge with stable
author Matt Mackall <mpm@selenic.com>
date Mon, 12 Sep 2011 23:02:45 -0500
parents 0588fb0e2e8d db0646afb725
children 85322c19c831
comparison
equal deleted inserted replaced
15087:adad8d68fb1f 15089:bfe903b1ff4e
1197 yield 'hunk', h 1197 yield 'hunk', h
1198 elif x.startswith('diff --git'): 1198 elif x.startswith('diff --git'):
1199 m = gitre.match(x) 1199 m = gitre.match(x)
1200 if not m: 1200 if not m:
1201 continue 1201 continue
1202 if gitpatches is None: 1202 if not gitpatches:
1203 # scan whole input for git metadata 1203 # scan whole input for git metadata
1204 gitpatches = [('a/' + gp.path, 'b/' + gp.path, gp) for gp 1204 gitpatches = [('a/' + gp.path, 'b/' + gp.path, gp) for gp
1205 in scangitpatch(lr, x)] 1205 in scangitpatch(lr, x)]
1206 yield 'git', [g[2].copy() for g in gitpatches 1206 yield 'git', [g[2].copy() for g in gitpatches
1207 if g[2].op in ('COPY', 'RENAME')] 1207 if g[2].op in ('COPY', 'RENAME')]