comparison mercurial/patch.py @ 9392:039bce1b505f

patch: readgitpatch: remove unused variable 'src'
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Mon, 24 Aug 2009 14:40:21 +0200
parents 9d68d9deda51
children 23c4e772c172
comparison
equal deleted inserted replaced
9391:2705e6816d33 9392:039bce1b505f
186 if line.startswith('diff --git'): 186 if line.startswith('diff --git'):
187 m = gitre.match(line) 187 m = gitre.match(line)
188 if m: 188 if m:
189 if gp: 189 if gp:
190 gitpatches.append(gp) 190 gitpatches.append(gp)
191 src, dst = m.group(1, 2) 191 dst = m.group(2)
192 gp = patchmeta(dst) 192 gp = patchmeta(dst)
193 gp.lineno = lineno 193 gp.lineno = lineno
194 elif gp: 194 elif gp:
195 if line.startswith('--- '): 195 if line.startswith('--- '):
196 if gp.op in ('COPY', 'RENAME'): 196 if gp.op in ('COPY', 'RENAME'):