mercurial/patch.py
changeset 27412 14b184263846
parent 27401 186f2afe9919
child 27485 60183975b5bc
equal deleted inserted replaced
27411:c84a07530040 27412:14b184263846
  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