equal
deleted
inserted
replaced
1489 self.header.hunks.append(h) |
1489 self.header.hunks.append(h) |
1490 self.fromline += len(self.before) + h.removed |
1490 self.fromline += len(self.before) + h.removed |
1491 self.toline += len(self.before) + h.added |
1491 self.toline += len(self.before) + h.added |
1492 self.before = [] |
1492 self.before = [] |
1493 self.hunk = [] |
1493 self.hunk = [] |
1494 self.proc = '' |
|
1495 self.context = context |
1494 self.context = context |
1496 |
1495 |
1497 def addhunk(self, hunk): |
1496 def addhunk(self, hunk): |
1498 if self.context: |
1497 if self.context: |
1499 self.before = self.context |
1498 self.before = self.context |