Show More
@@ -295,7 +295,6 b' class patchmeta(object):' | |||||
295 | self.oldpath = None |
|
295 | self.oldpath = None | |
296 | self.mode = None |
|
296 | self.mode = None | |
297 | self.op = 'MODIFY' |
|
297 | self.op = 'MODIFY' | |
298 | self.lineno = 0 |
|
|||
299 | self.binary = False |
|
298 | self.binary = False | |
300 |
|
299 | |||
301 | def setmode(self, mode): |
|
300 | def setmode(self, mode): | |
@@ -312,9 +311,7 b' def readgitpatch(lr):' | |||||
312 | # Filter patch for git information |
|
311 | # Filter patch for git information | |
313 | gp = None |
|
312 | gp = None | |
314 | gitpatches = [] |
|
313 | gitpatches = [] | |
315 | lineno = 0 |
|
|||
316 | for line in lr: |
|
314 | for line in lr: | |
317 | lineno += 1 |
|
|||
318 | line = line.rstrip(' \r\n') |
|
315 | line = line.rstrip(' \r\n') | |
319 | if line.startswith('diff --git'): |
|
316 | if line.startswith('diff --git'): | |
320 | m = gitre.match(line) |
|
317 | m = gitre.match(line) | |
@@ -323,7 +320,6 b' def readgitpatch(lr):' | |||||
323 | gitpatches.append(gp) |
|
320 | gitpatches.append(gp) | |
324 | dst = m.group(2) |
|
321 | dst = m.group(2) | |
325 | gp = patchmeta(dst) |
|
322 | gp = patchmeta(dst) | |
326 | gp.lineno = lineno |
|
|||
327 | elif gp: |
|
323 | elif gp: | |
328 | if line.startswith('--- '): |
|
324 | if line.startswith('--- '): | |
329 | gitpatches.append(gp) |
|
325 | gitpatches.append(gp) |
General Comments 0
You need to be logged in to leave comments.
Login now