patch: initialize all attributes of the hunk class
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 31 Oct 2009 18:01:08 +0100
changeset 9682 bd70f645cfb0
parent 9681 ac3a68cb16eb
child 9683 5c8651e2f5e0
patch: initialize all attributes of the hunk class
mercurial/patch.py
--- 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: