Show More
@@ -1,70 +1,70 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | echo "% init repo1" |
|
4 | 4 | hg init repo1 |
|
5 | 5 | cd repo1 |
|
6 | 6 | |
|
7 | 7 | echo |
|
8 | 8 | echo "% add a; ci" |
|
9 | 9 | echo "some text" > a |
|
10 | 10 | hg add |
|
11 | 11 | hg ci -m first |
|
12 | 12 | |
|
13 | 13 | echo |
|
14 | 14 | echo "% cat .hg/store/fncache" |
|
15 | 15 | cat .hg/store/fncache |
|
16 | 16 | |
|
17 | 17 | echo |
|
18 | 18 | echo "% add a.i/b; ci" |
|
19 | 19 | mkdir a.i |
|
20 | 20 | echo "some other text" > a.i/b |
|
21 | 21 | hg add |
|
22 | 22 | hg ci -m second |
|
23 | 23 | |
|
24 | 24 | echo |
|
25 | 25 | echo "% cat .hg/store/fncache" |
|
26 | 26 | cat .hg/store/fncache |
|
27 | 27 | |
|
28 | 28 | echo |
|
29 | 29 | echo "% add a.i.hg/c; ci" |
|
30 | 30 | mkdir a.i.hg |
|
31 | 31 | echo "yet another text" > a.i.hg/c |
|
32 | 32 | hg add |
|
33 | 33 | hg ci -m third |
|
34 | 34 | |
|
35 | 35 | echo |
|
36 | 36 | echo "% cat .hg/store/fncache" |
|
37 | 37 | cat .hg/store/fncache |
|
38 | 38 | |
|
39 | 39 | echo |
|
40 | 40 | echo "% hg verify" |
|
41 | 41 | hg verify |
|
42 | 42 | |
|
43 | 43 | echo |
|
44 | 44 | echo "% rm .hg/store/fncache" |
|
45 | 45 | rm .hg/store/fncache |
|
46 | 46 | |
|
47 | 47 | echo |
|
48 | 48 | echo "% hg verify" |
|
49 | 49 | hg verify |
|
50 | 50 | |
|
51 | 51 | # try non store repo encoding |
|
52 | 52 | cd .. |
|
53 | 53 | echo % non store repo |
|
54 | 54 | hg --config format.usestore=False init foo |
|
55 | 55 | cd foo |
|
56 | 56 | mkdir tst.d |
|
57 | 57 | echo foo > tst.d/foo |
|
58 | 58 | hg ci -Amfoo |
|
59 | ls -R .hg | |
|
59 | find .hg | sort | |
|
60 | 60 | |
|
61 | 61 | cd .. |
|
62 | 62 | echo % non fncache repo |
|
63 | 63 | hg --config format.usefncache=False init bar |
|
64 | 64 | cd bar |
|
65 | 65 | mkdir tst.d |
|
66 | 66 | echo foo > tst.d/Foo |
|
67 | 67 | hg ci -Amfoo |
|
68 | ls -R .hg | |
|
68 | find .hg | sort | |
|
69 | 69 | |
|
70 | 70 | exit 0 |
@@ -1,81 +1,71 | |||
|
1 | 1 | % init repo1 |
|
2 | 2 | |
|
3 | 3 | % add a; ci |
|
4 | 4 | adding a |
|
5 | 5 | |
|
6 | 6 | % cat .hg/store/fncache |
|
7 | 7 | data/a.i |
|
8 | 8 | |
|
9 | 9 | % add a.i/b; ci |
|
10 | 10 | adding a.i/b |
|
11 | 11 | |
|
12 | 12 | % cat .hg/store/fncache |
|
13 | 13 | data/a.i |
|
14 | 14 | data/a.i.hg/b.i |
|
15 | 15 | |
|
16 | 16 | % add a.i.hg/c; ci |
|
17 | 17 | adding a.i.hg/c |
|
18 | 18 | |
|
19 | 19 | % cat .hg/store/fncache |
|
20 | 20 | data/a.i |
|
21 | 21 | data/a.i.hg/b.i |
|
22 | 22 | data/a.i.hg.hg/c.i |
|
23 | 23 | |
|
24 | 24 | % hg verify |
|
25 | 25 | checking changesets |
|
26 | 26 | checking manifests |
|
27 | 27 | crosschecking files in changesets and manifests |
|
28 | 28 | checking files |
|
29 | 29 | 3 files, 3 changesets, 3 total revisions |
|
30 | 30 | |
|
31 | 31 | % rm .hg/store/fncache |
|
32 | 32 | |
|
33 | 33 | % hg verify |
|
34 | 34 | checking changesets |
|
35 | 35 | checking manifests |
|
36 | 36 | crosschecking files in changesets and manifests |
|
37 | 37 | checking files |
|
38 | 38 | data/a.i@0: missing revlog! |
|
39 | 39 | data/a.i.hg/c.i@2: missing revlog! |
|
40 | 40 | data/a.i/b.i@1: missing revlog! |
|
41 | 41 | 3 files, 3 changesets, 3 total revisions |
|
42 | 42 | 3 integrity errors encountered! |
|
43 | 43 | (first damaged changeset appears to be 0) |
|
44 | 44 | % non store repo |
|
45 | 45 | adding tst.d/foo |
|
46 |
.hg |
|
|
47 | 00changelog.i | |
|
48 | 00manifest.i | |
|
49 | data | |
|
50 | dirstate | |
|
51 | requires | |
|
52 | undo | |
|
53 | undo.branch | |
|
54 | undo.dirstate | |
|
55 | ||
|
56 | .hg/data: | |
|
57 | tst.d.hg | |
|
58 | ||
|
59 | .hg/data/tst.d.hg: | |
|
60 | foo.i | |
|
46 | .hg | |
|
47 | .hg/00changelog.i | |
|
48 | .hg/00manifest.i | |
|
49 | .hg/data | |
|
50 | .hg/data/tst.d.hg | |
|
51 | .hg/data/tst.d.hg/foo.i | |
|
52 | .hg/dirstate | |
|
53 | .hg/requires | |
|
54 | .hg/undo | |
|
55 | .hg/undo.branch | |
|
56 | .hg/undo.dirstate | |
|
61 | 57 | % non fncache repo |
|
62 | 58 | adding tst.d/Foo |
|
63 |
.hg |
|
|
64 | 00changelog.i | |
|
65 | dirstate | |
|
66 | requires | |
|
67 | store | |
|
68 | undo.branch | |
|
69 | undo.dirstate | |
|
70 | ||
|
71 | .hg/store: | |
|
72 | 00changelog.i | |
|
73 | 00manifest.i | |
|
74 | data | |
|
75 | undo | |
|
76 | ||
|
77 | .hg/store/data: | |
|
78 | tst.d.hg | |
|
79 | ||
|
80 | .hg/store/data/tst.d.hg: | |
|
81 | _foo.i | |
|
59 | .hg | |
|
60 | .hg/00changelog.i | |
|
61 | .hg/dirstate | |
|
62 | .hg/requires | |
|
63 | .hg/store | |
|
64 | .hg/store/00changelog.i | |
|
65 | .hg/store/00manifest.i | |
|
66 | .hg/store/data | |
|
67 | .hg/store/data/tst.d.hg | |
|
68 | .hg/store/data/tst.d.hg/_foo.i | |
|
69 | .hg/store/undo | |
|
70 | .hg/undo.branch | |
|
71 | .hg/undo.dirstate |
General Comments 0
You need to be logged in to leave comments.
Login now