Mercurial > hg
comparison tests/test-empty-manifest-index.t @ 48198:61ce70fd420e
rhg: handle null changelog and manifest revisions
Differential Revision: https://phab.mercurial-scm.org/D11650
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Tue, 12 Oct 2021 19:43:51 +0100 |
parents | |
children | 9d0e5629cfbf |
comparison
equal
deleted
inserted
replaced
48197:63e86fc9bfec | 48198:61ce70fd420e |
---|---|
1 Create a repo such that the changelog entry refers to a null manifest node: | |
2 | |
3 $ hg init a | |
4 $ cd a | |
5 $ hg log | |
6 $ touch x | |
7 $ hg add x | |
8 $ hg commit -m "init" | |
9 $ hg rm x | |
10 $ hg commit -q --amend | |
11 | |
12 $ wc -c < .hg/store/00manifest.i | |
13 0 | |
14 | |
15 Make sure that the manifest can be read (and is empty): | |
16 | |
17 $ hg --config rhg.on-unsupported=abort files -r . | |
18 [1] | |
19 | |
20 Test a null changelog rev, too: | |
21 | |
22 $ hg --config rhg.on-unsupported=abort files -r 0000000000000000000000000000000000000000 | |
23 [1] |