##// END OF EJS Templates
rawdata: update callers in test-revlog-raw...
marmoute -
r43045:74045067 default
parent child Browse files
Show More
@@ -162,7 +162,7 b" def lowlevelcopy(rlog, tr, destname=b'_d"
162 p1 = rlog.node(r - 1)
162 p1 = rlog.node(r - 1)
163 p2 = node.nullid
163 p2 = node.nullid
164 if r == 0 or (rlog.flags(r) & revlog.REVIDX_EXTSTORED):
164 if r == 0 or (rlog.flags(r) & revlog.REVIDX_EXTSTORED):
165 text = rlog.revision(r, raw=True)
165 text = rlog.rawdata(r)
166 cachedelta = None
166 cachedelta = None
167 else:
167 else:
168 # deltaparent cannot have EXTSTORED flag.
168 # deltaparent cannot have EXTSTORED flag.
@@ -269,7 +269,7 b' def writecases(rlog, tr):'
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:
271 abort('rev %d: wrong text' % rev)
271 abort('rev %d: wrong text' % rev)
272 if rlog.revision(rev, raw=True) != rawtext:
272 if rlog.rawdata(rev) != rawtext:
273 abort('rev %d: wrong rawtext' % rev)
273 abort('rev %d: wrong rawtext' % rev)
274 result.append((text, rawtext))
274 result.append((text, rawtext))
275
275
@@ -294,7 +294,10 b' def checkrevlog(rlog, expected):'
294 nlog = newrevlog()
294 nlog = newrevlog()
295 for rev in revorder:
295 for rev in revorder:
296 for raw in raworder:
296 for raw in raworder:
297 t = nlog.revision(rev, raw=raw)
297 if raw:
298 t = nlog.rawdata(rev)
299 else:
300 t = nlog.revision(rev)
298 if t != expected[rev][int(raw)]:
301 if t != expected[rev][int(raw)]:
299 abort('rev %d: corrupted %stext'
302 abort('rev %d: corrupted %stext'
300 % (rev, raw and 'raw' or ''))
303 % (rev, raw and 'raw' or ''))
General Comments 0
You need to be logged in to leave comments. Login now