diff mercurial/patch.py @ 9682:bd70f645cfb0

patch: initialize all attributes of the hunk class
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 31 Oct 2009 18:01:08 +0100
parents ac3a68cb16eb
children 5c8651e2f5e0
line wrap: on
line diff
--- a/mercurial/patch.py	Sat Oct 31 18:00:05 2009 +0100
+++ b/mercurial/patch.py	Sat Oct 31 18:01:08 2009 +0100
@@ -480,6 +480,8 @@
         self.hunk = [ desc ]
         self.a = []
         self.b = []
+        self.starta = self.lena = None
+        self.startb = self.lenb = None
         if context:
             self.read_context_hunk(lr)
         else: