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