equal
deleted
inserted
replaced
1012 def fuzzit(self, fuzz, toponly): |
1012 def fuzzit(self, fuzz, toponly): |
1013 old, new, top = self._fuzzit(self.a, self.b, fuzz, toponly) |
1013 old, new, top = self._fuzzit(self.a, self.b, fuzz, toponly) |
1014 oldstart = self.starta + top |
1014 oldstart = self.starta + top |
1015 newstart = self.startb + top |
1015 newstart = self.startb + top |
1016 # zero length hunk ranges already have their start decremented |
1016 # zero length hunk ranges already have their start decremented |
1017 if self.lena: |
1017 if self.lena and oldstart > 0: |
1018 oldstart -= 1 |
1018 oldstart -= 1 |
1019 if self.lenb: |
1019 if self.lenb and newstart > 0: |
1020 newstart -= 1 |
1020 newstart -= 1 |
1021 return old, oldstart, new, newstart |
1021 return old, oldstart, new, newstart |
1022 |
1022 |
1023 class binhunk(object): |
1023 class binhunk(object): |
1024 'A binary patch file. Only understands literals so far.' |
1024 'A binary patch file. Only understands literals so far.' |