Debian Codegraph @

tests/test-empty-manifest-index.t

raw
1 Test null revisions (node 0000000000000000000000000000000000000000, aka rev -1)
2 in various circumstances.
3
4 Make an empty repo:
5
6 $ hg init a
7 $ cd a
8
9 $ hg files -r 0000000000000000000000000000000000000000
10 [1]
11 $ hg files -r .
12 [1]
13
14 Add an empty commit (this makes the changelog refer to a null manifest node):
15
16
17 $ hg commit -m "init" --config ui.allowemptycommit=true
18
19 $ hg files -r .
20 [1]
21
22 Strip that empty commit (this makes the changelog file empty, as opposed to missing):
23
24 $ hg --config 'extensions.strip=' strip . > /dev/null
25
26 $ hg files -r .
27 [1]