# HG changeset patch # User Benoit Boissinot # Date 2009-10-31 17:01:08 # Node ID bd70f645cfb042e39d2a0c29e679408c5be74f06 # Parent ac3a68cb16ebc6ef7b09bf070793d164e823d565 patch: initialize all attributes of the hunk class diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -480,6 +480,8 @@ class hunk(object): 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: