##// END OF EJS Templates
test: change repair strip test to illustrate manifest errors
Henrik Stuart -
r8293:f00573bc default
parent child Browse files
Show More
@@ -28,9 +28,13 b' hg -q ci -m "a" -A'
28 28 echo b > b
29 29 hg -q ci -m "b" -A
30 30
31 echo b2 >> b
32 hg -q ci -m "b2" -A
33
31 34 echo c > c
32 35 hg -q ci -m "c" -A
36
37 teststrip 0 2 w .hg/store/data/b.i
38 teststrip 0 2 r .hg/store/data/b.i
39 teststrip 0 2 w .hg/store/00manifest.i
33 40
34 teststrip 0 1 w .hg/store/data/b.i
35 teststrip 0 1 r .hg/store/data/b.i
36 teststrip 0 1 w .hg/store/00changelog.i
@@ -1,4 +1,4 b''
1 % before update 0, strip 1
1 % before update 0, strip 2
2 2 changeset: 0:cb9a9f314b8b
3 3 user: test
4 4 date: Thu Jan 01 00:00:00 1970 +0000
@@ -9,14 +9,17 b' transaction abort!'
9 9 failed to truncate data/b.i
10 10 rollback failed - please run hg recover
11 11 abort: Permission denied .hg/store/data/b.i
12 % after update 0, strip 1
12 % after update 0, strip 2
13 13 checking changesets
14 14 checking manifests
15 15 crosschecking files in changesets and manifests
16 16 checking files
17 warning: orphan revlog 'data/b.i'
18 1 files, 1 changesets, 1 total revisions
17 b@?: rev 1 points to nonexistent changeset 2
18 (expected 1)
19 b@?: 736c29771fba not in manifests
20 2 files, 2 changesets, 3 total revisions
19 21 1 warnings encountered!
22 2 integrity errors encountered!
20 23 % journal contents
21 24 00changelog.i
22 25 00manifest.i
@@ -27,23 +30,23 b' checking changesets'
27 30 checking manifests
28 31 crosschecking files in changesets and manifests
29 32 checking files
30 1 files, 1 changesets, 1 total revisions
31 % before update 0, strip 1
33 2 files, 2 changesets, 2 total revisions
34 % before update 0, strip 2
32 35 changeset: 0:cb9a9f314b8b
33 36 user: test
34 37 date: Thu Jan 01 00:00:00 1970 +0000
35 38 summary: a
36 39
37 40 abort: Permission denied .hg/store/data/b.i
38 % after update 0, strip 1
41 % after update 0, strip 2
39 42 checking changesets
40 43 checking manifests
41 44 crosschecking files in changesets and manifests
42 45 checking files
43 3 files, 3 changesets, 3 total revisions
46 3 files, 4 changesets, 4 total revisions
44 47 % journal contents
45 48 cat: .hg/store/journal: No such file or directory
46 % before update 0, strip 1
49 % before update 0, strip 2
47 50 changeset: 0:cb9a9f314b8b
48 51 user: test
49 52 date: Thu Jan 01 00:00:00 1970 +0000
@@ -51,25 +54,24 b' summary: a'
51 54
52 55 saving bundle to
53 56 transaction abort!
54 failed to truncate 00changelog.i
57 failed to truncate 00manifest.i
55 58 rollback failed - please run hg recover
56 abort: Permission denied .hg/store/00changelog.i
57 % after update 0, strip 1
59 abort: Permission denied .hg/store/00manifest.i
60 % after update 0, strip 2
58 61 checking changesets
59 62 checking manifests
63 manifest@?: rev 2 points to nonexistent changeset 2
64 manifest@?: rev 3 points to nonexistent changeset 3
60 65 crosschecking files in changesets and manifests
61 1: changeset refers to unknown manifest a539ce0c1a22
62 2: changeset refers to unknown manifest e3738bf54399
63 b@1: in changeset but not in manifest
64 c@2: in changeset but not in manifest
66 c@?: in manifest but not in changeset
65 67 checking files
66 data/b.i@1: missing revlog!
67 1: empty or missing b
68 data/c.i@2: missing revlog!
69 2: empty or missing c
70 3 files, 3 changesets, 1 total revisions
71 8 integrity errors encountered!
72 (first damaged changeset appears to be 1)
68 b@2: 736c29771fba in manifests not found
69 data/c.i@?: missing revlog!
70 ?: empty or missing c
71 c@3: 149da44f2a4e in manifests not found
72 3 files, 2 changesets, 2 total revisions
73 7 integrity errors encountered!
74 (first damaged changeset appears to be 2)
73 75 % journal contents
74 76 00changelog.i
75 77 00manifest.i
@@ -80,4 +82,4 b' checking changesets'
80 82 checking manifests
81 83 crosschecking files in changesets and manifests
82 84 checking files
83 1 files, 1 changesets, 1 total revisions
85 2 files, 2 changesets, 2 total revisions
General Comments 0
You need to be logged in to leave comments. Login now