test-fncache.t
119 lines
| 2.2 KiB
| text/troff
|
Tads3Lexer
/ tests / test-fncache.t
Adrian Buehlmann
|
r11865 | Init repo1: | ||
$ hg init repo1 | ||||
$ cd repo1 | ||||
$ echo "some text" > a | ||||
$ hg add | ||||
adding a | ||||
$ hg ci -m first | ||||
Adrian Buehlmann
|
r13389 | $ cat .hg/store/fncache | sort | ||
Adrian Buehlmann
|
r11865 | data/a.i | ||
Testing a.i/b: | ||||
$ mkdir a.i | ||||
$ echo "some other text" > a.i/b | ||||
$ hg add | ||||
Mads Kiilerich
|
r15447 | adding a.i/b (glob) | ||
Adrian Buehlmann
|
r11865 | $ hg ci -m second | ||
Adrian Buehlmann
|
r13389 | $ cat .hg/store/fncache | sort | ||
Adrian Buehlmann
|
r11865 | data/a.i | ||
data/a.i.hg/b.i | ||||
Testing a.i.hg/c: | ||||
$ mkdir a.i.hg | ||||
$ echo "yet another text" > a.i.hg/c | ||||
$ hg add | ||||
Mads Kiilerich
|
r15447 | adding a.i.hg/c (glob) | ||
Adrian Buehlmann
|
r11865 | $ hg ci -m third | ||
Adrian Buehlmann
|
r13389 | $ cat .hg/store/fncache | sort | ||
Adrian Buehlmann
|
r11865 | data/a.i | ||
Adrian Buehlmann
|
r13389 | data/a.i.hg.hg/c.i | ||
Adrian Buehlmann
|
r11865 | data/a.i.hg/b.i | ||
Testing verify: | ||||
$ hg verify | ||||
checking changesets | ||||
checking manifests | ||||
crosschecking files in changesets and manifests | ||||
checking files | ||||
3 files, 3 changesets, 3 total revisions | ||||
$ rm .hg/store/fncache | ||||
$ hg verify | ||||
checking changesets | ||||
checking manifests | ||||
crosschecking files in changesets and manifests | ||||
checking files | ||||
data/a.i@0: missing revlog! | ||||
data/a.i.hg/c.i@2: missing revlog! | ||||
data/a.i/b.i@1: missing revlog! | ||||
3 files, 3 changesets, 3 total revisions | ||||
3 integrity errors encountered! | ||||
(first damaged changeset appears to be 0) | ||||
Matt Mackall
|
r12316 | [1] | ||
Adrian Buehlmann
|
r11865 | $ cd .. | ||
Non store repo: | ||||
$ hg --config format.usestore=False init foo | ||||
$ cd foo | ||||
$ mkdir tst.d | ||||
$ echo foo > tst.d/foo | ||||
$ hg ci -Amfoo | ||||
adding tst.d/foo | ||||
$ find .hg | sort | ||||
.hg | ||||
.hg/00changelog.i | ||||
.hg/00manifest.i | ||||
Mads Kiilerich
|
r15886 | .hg/cache | ||
.hg/cache/branchheads | ||||
Adrian Buehlmann
|
r11865 | .hg/data | ||
.hg/data/tst.d.hg | ||||
.hg/data/tst.d.hg/foo.i | ||||
.hg/dirstate | ||||
.hg/last-message.txt | ||||
Pierre-Yves David
|
r15483 | .hg/phaseroots | ||
Adrian Buehlmann
|
r11865 | .hg/requires | ||
.hg/undo | ||||
Alexander Solovyov
|
r14266 | .hg/undo.bookmarks | ||
Adrian Buehlmann
|
r11865 | .hg/undo.branch | ||
.hg/undo.desc | ||||
.hg/undo.dirstate | ||||
Pierre-Yves David
|
r15455 | .hg/undo.phaseroots | ||
Adrian Buehlmann
|
r11865 | $ cd .. | ||
Non fncache repo: | ||||
$ hg --config format.usefncache=False init bar | ||||
$ cd bar | ||||
$ mkdir tst.d | ||||
$ echo foo > tst.d/Foo | ||||
$ hg ci -Amfoo | ||||
adding tst.d/Foo | ||||
$ find .hg | sort | ||||
.hg | ||||
.hg/00changelog.i | ||||
Mads Kiilerich
|
r15886 | .hg/cache | ||
.hg/cache/branchheads | ||||
Adrian Buehlmann
|
r11865 | .hg/dirstate | ||
.hg/last-message.txt | ||||
.hg/requires | ||||
.hg/store | ||||
.hg/store/00changelog.i | ||||
.hg/store/00manifest.i | ||||
.hg/store/data | ||||
.hg/store/data/tst.d.hg | ||||
.hg/store/data/tst.d.hg/_foo.i | ||||
Pierre-Yves David
|
r15483 | .hg/store/phaseroots | ||
Adrian Buehlmann
|
r11865 | .hg/store/undo | ||
Pierre-Yves David
|
r15455 | .hg/store/undo.phaseroots | ||
Alexander Solovyov
|
r14266 | .hg/undo.bookmarks | ||
Adrian Buehlmann
|
r11865 | .hg/undo.branch | ||
.hg/undo.desc | ||||
.hg/undo.dirstate | ||||
$ cd .. | ||||