test-empty-manifest-index.t
27 lines
| 572 B
| text/troff
|
Tads3Lexer
/ tests / test-empty-manifest-index.t
Arseniy Alekseyev
|
r49013 | Test null revisions (node 0000000000000000000000000000000000000000, aka rev -1) | ||
in various circumstances. | ||||
Make an empty repo: | ||||
Arseniy Alekseyev
|
r49012 | |||
$ hg init a | ||||
$ cd a | ||||
Arseniy Alekseyev
|
r49013 | $ hg files -r 0000000000000000000000000000000000000000 | ||
[1] | ||||
$ hg files -r . | ||||
Arseniy Alekseyev
|
r49012 | [1] | ||
Arseniy Alekseyev
|
r49013 | Add an empty commit (this makes the changelog refer to a null manifest node): | ||
$ hg commit -m "init" --config ui.allowemptycommit=true | ||||
Arseniy Alekseyev
|
r49012 | |||
Arseniy Alekseyev
|
r49013 | $ hg files -r . | ||
Arseniy Alekseyev
|
r49012 | [1] | ||
Arseniy Alekseyev
|
r49013 | |||
Strip that empty commit (this makes the changelog file empty, as opposed to missing): | ||||
$ hg --config 'extensions.strip=' strip . > /dev/null | ||||
$ hg files -r . | ||||
[1] | ||||