##// END OF EJS Templates
patchfile: use real Booleans instead of 0/1
Martin Geisler -
r14217:71d52873 default
parent child Browse files
Show More
@@ -406,7 +406,7 b' class patchfile(object):'
406 406 self.ui.warn(_("unable to find '%s' for patching\n") % self.fname)
407 407
408 408 self.hash = {}
409 self.dirty = 0
409 self.dirty = False
410 410 self.offset = 0
411 411 self.skew = 0
412 412 self.rej = []
@@ -539,7 +539,7 b' class patchfile(object):'
539 539 else:
540 540 self.lines[:] = h.new()
541 541 self.offset += len(h.new())
542 self.dirty = 1
542 self.dirty = True
543 543 return 0
544 544
545 545 horig = h
@@ -567,7 +567,7 b' class patchfile(object):'
567 567 else:
568 568 self.lines[start : start + h.lena] = h.new()
569 569 self.offset += h.lenb - h.lena
570 self.dirty = 1
570 self.dirty = True
571 571 return 0
572 572
573 573 # ok, we couldn't match the hunk. Lets look for offsets and fuzz it
@@ -592,7 +592,7 b' class patchfile(object):'
592 592 self.lines[l : l + len(old)] = newlines
593 593 self.offset += len(newlines) - len(old)
594 594 self.skew = l - orig_start
595 self.dirty = 1
595 self.dirty = True
596 596 offset = l - orig_start - fuzzlen
597 597 if fuzzlen:
598 598 msg = _("Hunk #%d succeeded at %d "
General Comments 0
You need to be logged in to leave comments. Login now