equal
deleted
inserted
replaced
45 def readprocessor(self, rawtext): |
45 def readprocessor(self, rawtext): |
46 # True: the returned text could be used to verify hash |
46 # True: the returned text could be used to verify hash |
47 text = rawtext[len(_extheader):].replace(b'i', b'1') |
47 text = rawtext[len(_extheader):].replace(b'i', b'1') |
48 return text, True, {} |
48 return text, True, {} |
49 |
49 |
50 def writeprocessor(self, text): |
50 def writeprocessor(self, text, sidedata): |
51 # False: the returned rawtext shouldn't be used to verify hash |
51 # False: the returned rawtext shouldn't be used to verify hash |
52 rawtext = _extheader + text.replace(b'1', b'i') |
52 rawtext = _extheader + text.replace(b'1', b'i') |
53 return rawtext, False |
53 return rawtext, False |
54 |
54 |
55 def rawprocessor(self, rawtext): |
55 def rawprocessor(self, rawtext): |
260 text = gentext(i) |
260 text = gentext(i) |
261 rev = appendrev(rlog, text, tr, isext=isext, isdelta=isdelta) |
261 rev = appendrev(rlog, text, tr, isext=isext, isdelta=isdelta) |
262 |
262 |
263 # Verify text, rawtext, and rawsize |
263 # Verify text, rawtext, and rawsize |
264 if isext: |
264 if isext: |
265 rawtext = writeprocessor(None, text)[0] |
265 rawtext = writeprocessor(None, text, {})[0] |
266 else: |
266 else: |
267 rawtext = text |
267 rawtext = text |
268 if rlog.rawsize(rev) != len(rawtext): |
268 if rlog.rawsize(rev) != len(rawtext): |
269 abort('rev %d: wrong rawsize' % rev) |
269 abort('rev %d: wrong rawsize' % rev) |
270 if rlog.revision(rev, raw=False) != text: |
270 if rlog.revision(rev, raw=False) != text: |