Mercurial > hg
comparison tests/test-revlog.t @ 46704:913485776542
revlog: introduce v2 format
As documented in [1], this is still tentative and could be subject to change,
but we need to lay down the foundations in order to work on the next abstraction
layers.
[1] https://www.mercurial-scm.org/wiki/RevlogV2Plan
Differential Revision: https://phab.mercurial-scm.org/D9843
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 28 Jan 2021 15:28:57 +0100 |
parents | 17a695357270 |
children | 4c041c71ec01 |
comparison
equal
deleted
inserted
replaced
46677:7ed7b13fc00a | 46704:913485776542 |
---|---|
20 [50] | 20 [50] |
21 | 21 |
22 Unknown version is rejected | 22 Unknown version is rejected |
23 | 23 |
24 >>> with open('.hg/store/00changelog.i', 'wb') as fh: | 24 >>> with open('.hg/store/00changelog.i', 'wb') as fh: |
25 ... fh.write(b'\x00\x00\x00\x02') and None | 25 ... fh.write(b'\x00\x00\xbe\xef') and None |
26 | 26 |
27 $ hg log | 27 $ hg log |
28 abort: unknown version (2) in revlog 00changelog.i | 28 abort: unknown version (48879) in revlog 00changelog.i |
29 [50] | 29 [50] |
30 | 30 |
31 $ cd .. | 31 $ cd .. |
32 | 32 |
33 Test for CVE-2016-3630 | 33 Test for CVE-2016-3630 |