Mercurial > hg
comparison tests/test-revlog-raw.py @ 48529:c514936d92b4
revlog: remove deprecated APIs
Differential Revision: https://phab.mercurial-scm.org/D11951
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 23 Dec 2021 14:48:31 +0100 |
parents | 906a7bcaac86 |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
48528:75fc2537d93c | 48529:c514936d92b4 |
---|---|
323 rawtext = writeprocessor(None, text)[0] | 323 rawtext = writeprocessor(None, text)[0] |
324 else: | 324 else: |
325 rawtext = text | 325 rawtext = text |
326 if rlog.rawsize(rev) != len(rawtext): | 326 if rlog.rawsize(rev) != len(rawtext): |
327 abort('rev %d: wrong rawsize' % rev) | 327 abort('rev %d: wrong rawsize' % rev) |
328 if rlog.revision(rev, raw=False) != text: | 328 if rlog.revision(rev) != text: |
329 abort('rev %d: wrong text' % rev) | 329 abort('rev %d: wrong text' % rev) |
330 if rlog.rawdata(rev) != rawtext: | 330 if rlog.rawdata(rev) != rawtext: |
331 abort('rev %d: wrong rawtext' % rev) | 331 abort('rev %d: wrong rawtext' % rev) |
332 result.append((text, rawtext)) | 332 result.append((text, rawtext)) |
333 | 333 |