changeset 63:1b5ca4ace154

- fix longstanding context-leak bug, where context from last hunk of previous header leaks into subsequent header. (closes issue #14)
author Mark Edgington <edgimar@gmail.com>
date Tue, 06 Jul 2010 23:52:09 +0200
parents 7ef671d7d75d
children 9147147c06d2
files crecord/crpatch.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/crecord/crpatch.py
+++ b/crecord/crpatch.py
@@ -539,6 +539,7 @@
             self.toline += len(self.before) + h.added
             self.before = []
             self.changedlines = []
+            self.context = []
             self.proc = ''
 
         def _context(self, context):