Show More
@@ -1071,11 +1071,20 b' def debugindex(ui, repo, file_=None, **o' | |||
|
1071 | 1071 | break |
|
1072 | 1072 | |
|
1073 | 1073 | if format == 0: |
|
1074 | ui.write((" rev offset length linkrev" | |
|
1075 | " %s %s p2\n") % ("nodeid".ljust(idlen), "p1".ljust(idlen))) | |
|
1074 | if ui.verbose: | |
|
1075 | ui.write((" rev offset length linkrev" | |
|
1076 | " %s %s p2\n") % ("nodeid".ljust(idlen), | |
|
1077 | "p1".ljust(idlen))) | |
|
1078 | else: | |
|
1079 | ui.write((" rev linkrev %s %s p2\n") % ( | |
|
1080 | "nodeid".ljust(idlen), "p1".ljust(idlen))) | |
|
1076 | 1081 | elif format == 1: |
|
1077 | ui.write((" rev flag offset length size link p1 p2" | |
|
1078 | " %s\n") % "nodeid".rjust(idlen)) | |
|
1082 | if ui.verbose: | |
|
1083 | ui.write((" rev flag offset length size link p1" | |
|
1084 | " p2 %s\n") % "nodeid".rjust(idlen)) | |
|
1085 | else: | |
|
1086 | ui.write((" rev flag size link p1 p2 %s\n") % | |
|
1087 | "nodeid".rjust(idlen)) | |
|
1079 | 1088 | |
|
1080 | 1089 | for i in r: |
|
1081 | 1090 | node = r.node(i) |
@@ -1084,14 +1093,24 b' def debugindex(ui, repo, file_=None, **o' | |||
|
1084 | 1093 | pp = r.parents(node) |
|
1085 | 1094 | except Exception: |
|
1086 | 1095 | pp = [nullid, nullid] |
|
1087 | ui.write("% 6d % 9d % 7d % 7d %s %s %s\n" % ( | |
|
1088 | i, r.start(i), r.length(i), r.linkrev(i), | |
|
1089 | shortfn(node), shortfn(pp[0]), shortfn(pp[1]))) | |
|
1096 | if ui.verbose: | |
|
1097 | ui.write("% 6d % 9d % 7d % 7d %s %s %s\n" % ( | |
|
1098 | i, r.start(i), r.length(i), r.linkrev(i), | |
|
1099 | shortfn(node), shortfn(pp[0]), shortfn(pp[1]))) | |
|
1100 | else: | |
|
1101 | ui.write("% 6d % 7d %s %s %s\n" % ( | |
|
1102 | i, r.linkrev(i), shortfn(node), shortfn(pp[0]), | |
|
1103 | shortfn(pp[1]))) | |
|
1090 | 1104 | elif format == 1: |
|
1091 | 1105 | pr = r.parentrevs(i) |
|
1092 | ui.write("% 6d %04x % 8d % 8d % 8d % 6d % 6d % 6d %s\n" % ( | |
|
1093 | i, r.flags(i), r.start(i), r.length(i), r.rawsize(i), | |
|
1094 | r.linkrev(i), pr[0], pr[1], shortfn(node))) | |
|
1106 | if ui.verbose: | |
|
1107 | ui.write("% 6d %04x % 8d % 8d % 8d % 6d % 6d % 6d %s\n" % ( | |
|
1108 | i, r.flags(i), r.start(i), r.length(i), r.rawsize(i), | |
|
1109 | r.linkrev(i), pr[0], pr[1], shortfn(node))) | |
|
1110 | else: | |
|
1111 | ui.write("% 6d %04x % 8d % 6d % 6d % 6d %s\n" % ( | |
|
1112 | i, r.flags(i), r.rawsize(i), r.linkrev(i), pr[0], pr[1], | |
|
1113 | shortfn(node))) | |
|
1095 | 1114 | |
|
1096 | 1115 | @command('debugindexdot', cmdutil.debugrevlogopts, |
|
1097 | 1116 | _('-c|-m|FILE'), optionalrepo=True) |
@@ -51,7 +51,7 b' this should not mention bar but should m' | |||
|
51 | 51 | |
|
52 | 52 | |
|
53 | 53 | $ hg debugindex bar |
|
54 |
rev |
|
|
55 |
0 |
|
|
54 | rev linkrev nodeid p1 p2 | |
|
55 | 0 1 b004912a8510 000000000000 000000000000 | |
|
56 | 56 | |
|
57 | 57 | $ cd .. |
@@ -38,33 +38,33 b'' | |||
|
38 | 38 | $ hg commit -m "0.3m" |
|
39 | 39 | |
|
40 | 40 | $ hg debugindex -f 1 afile |
|
41 |
rev flag |
|
|
42 |
0 0000 |
|
|
43 |
1 0000 |
|
|
44 |
2 0000 |
|
|
45 |
3 0000 |
|
|
41 | rev flag size link p1 p2 nodeid | |
|
42 | 0 0000 2 0 -1 -1 362fef284ce2 | |
|
43 | 1 0000 4 1 0 -1 125144f7e028 | |
|
44 | 2 0000 6 2 1 -1 4c982badb186 | |
|
45 | 3 0000 8 3 2 -1 19b1fc555737 | |
|
46 | 46 | |
|
47 | 47 | $ hg debugindex adifferentfile |
|
48 |
rev |
|
|
49 |
0 |
|
|
48 | rev linkrev nodeid p1 p2 | |
|
49 | 0 7 2565f3199a74 000000000000 000000000000 | |
|
50 | 50 | |
|
51 | 51 | $ hg debugindex anotherfile |
|
52 |
rev |
|
|
53 |
0 |
|
|
52 | rev linkrev nodeid p1 p2 | |
|
53 | 0 8 2565f3199a74 000000000000 000000000000 | |
|
54 | 54 | |
|
55 | 55 | $ hg debugindex fred |
|
56 |
rev |
|
|
57 |
0 |
|
|
56 | rev linkrev nodeid p1 p2 | |
|
57 | 0 6 12ab3bcc5ea4 000000000000 000000000000 | |
|
58 | 58 | |
|
59 | 59 | $ hg debugindex --manifest |
|
60 |
rev |
|
|
61 |
0 |
|
|
62 |
1 |
|
|
63 |
2 |
|
|
64 |
3 |
|
|
65 |
4 |
|
|
66 |
5 |
|
|
67 |
6 |
|
|
60 | rev linkrev nodeid p1 p2 | |
|
61 | 0 0 43eadb1d2d06 000000000000 000000000000 | |
|
62 | 1 1 8b89697eba2c 43eadb1d2d06 000000000000 | |
|
63 | 2 2 626a32663c2f 8b89697eba2c 000000000000 | |
|
64 | 3 3 f54c32f13478 626a32663c2f 000000000000 | |
|
65 | 4 6 de68e904d169 626a32663c2f 000000000000 | |
|
66 | 5 7 09bb521d218d de68e904d169 000000000000 | |
|
67 | 6 8 1fde233dfb0f f54c32f13478 000000000000 | |
|
68 | 68 | |
|
69 | 69 | $ hg verify |
|
70 | 70 | checking changesets |
@@ -1161,16 +1161,16 b' directory)' | |||
|
1161 | 1161 | R olddirname/commonfile.py |
|
1162 | 1162 | R olddirname/newfile.py |
|
1163 | 1163 | $ hg debugindex newdirname/newfile.py |
|
1164 |
rev |
|
|
1165 |
0 |
|
|
1164 | rev linkrev nodeid p1 p2 | |
|
1165 | 0 3 34a4d536c0c0 000000000000 000000000000 | |
|
1166 | 1166 | |
|
1167 | 1167 | $ echo a >> newdirname/commonfile.py |
|
1168 | 1168 | $ hg ci --amend -m bug |
|
1169 | 1169 | $ hg debugrename newdirname/newfile.py |
|
1170 | 1170 | newdirname/newfile.py renamed from olddirname/newfile.py:690b295714aed510803d3020da9c70fca8336def |
|
1171 | 1171 | $ hg debugindex newdirname/newfile.py |
|
1172 |
rev |
|
|
1173 |
0 |
|
|
1172 | rev linkrev nodeid p1 p2 | |
|
1173 | 0 3 34a4d536c0c0 000000000000 000000000000 | |
|
1174 | 1174 | |
|
1175 | 1175 | #if execbit |
|
1176 | 1176 |
@@ -624,9 +624,9 b' commit copy' | |||
|
624 | 624 | $ hg debugrename foo |
|
625 | 625 | foo renamed from bar:26d3ca0dfd18e44d796b564e38dd173c9668d3a9 |
|
626 | 626 | $ hg debugindex bar |
|
627 |
rev |
|
|
628 |
0 |
|
|
629 |
1 |
|
|
627 | rev linkrev nodeid p1 p2 | |
|
628 | 0 0 26d3ca0dfd18 000000000000 000000000000 | |
|
629 | 1 1 d267bddd54f7 26d3ca0dfd18 000000000000 | |
|
630 | 630 | |
|
631 | 631 | Test making empty commits |
|
632 | 632 | $ hg commit --config ui.allowemptycommit=True -m "empty commit" |
@@ -68,8 +68,8 b' we should see one log entry for a' | |||
|
68 | 68 | this should show a revision linked to changeset 0 |
|
69 | 69 | |
|
70 | 70 | $ hg debugindex a |
|
71 |
rev |
|
|
72 |
0 |
|
|
71 | rev linkrev nodeid p1 p2 | |
|
72 | 0 0 b789fdd96dc2 000000000000 000000000000 | |
|
73 | 73 | |
|
74 | 74 | we should see one log entry for b |
|
75 | 75 | |
@@ -84,8 +84,8 b' we should see one log entry for b' | |||
|
84 | 84 | this should show a revision linked to changeset 1 |
|
85 | 85 | |
|
86 | 86 | $ hg debugindex b |
|
87 |
rev |
|
|
88 |
0 |
|
|
87 | rev linkrev nodeid p1 p2 | |
|
88 | 0 1 37d9b5d994ea 000000000000 000000000000 | |
|
89 | 89 | |
|
90 | 90 | this should show the rename information in the metadata |
|
91 | 91 | |
@@ -170,8 +170,8 b" shouldn't show copy" | |||
|
170 | 170 | |
|
171 | 171 | should match |
|
172 | 172 | $ hg debugindex foo |
|
173 |
rev |
|
|
174 |
0 |
|
|
173 | rev linkrev nodeid p1 p2 | |
|
174 | 0 0 2ed2a3912a0b 000000000000 000000000000 | |
|
175 | 175 | $ hg debugrename bar |
|
176 | 176 | bar renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd |
|
177 | 177 | |
@@ -200,15 +200,15 b' displayed.' | |||
|
200 | 200 | |
|
201 | 201 | should show no parents for tip |
|
202 | 202 | $ hg debugindex bar |
|
203 |
rev |
|
|
204 |
0 |
|
|
205 |
1 |
|
|
206 |
2 |
|
|
203 | rev linkrev nodeid p1 p2 | |
|
204 | 0 1 7711d36246cc 000000000000 000000000000 | |
|
205 | 1 2 bdf70a2b8d03 7711d36246cc 000000000000 | |
|
206 | 2 3 b2558327ea8d 000000000000 000000000000 | |
|
207 | 207 | should match |
|
208 | 208 | $ hg debugindex foo |
|
209 |
rev |
|
|
210 |
0 |
|
|
211 |
1 |
|
|
209 | rev linkrev nodeid p1 p2 | |
|
210 | 0 0 2ed2a3912a0b 000000000000 000000000000 | |
|
211 | 1 2 dd12c926cf16 2ed2a3912a0b 000000000000 | |
|
212 | 212 | $ hg debugrename bar |
|
213 | 213 | bar renamed from foo:dd12c926cf165e3eb4cf87b084955cb617221c17 |
|
214 | 214 |
@@ -38,16 +38,27 b'' | |||
|
38 | 38 | full revision size (min/max/avg) : 44 / 44 / 44 |
|
39 | 39 | delta size (min/max/avg) : 0 / 0 / 0 |
|
40 | 40 | |
|
41 | Test debugindex, with and without the --debug flag | |
|
41 | Test debugindex, with and without the --verbose/--debug flag | |
|
42 | 42 | $ hg debugindex a |
|
43 | rev linkrev nodeid p1 p2 | |
|
44 | 0 0 b789fdd96dc2 000000000000 000000000000 | |
|
45 | ||
|
46 | $ hg --verbose debugindex a | |
|
43 | 47 | rev offset length linkrev nodeid p1 p2 |
|
44 | 48 | 0 0 3 0 b789fdd96dc2 000000000000 000000000000 |
|
49 | ||
|
45 | 50 | $ hg --debug debugindex a |
|
46 | 51 | rev offset length linkrev nodeid p1 p2 |
|
47 | 52 | 0 0 3 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 |
|
53 | ||
|
48 | 54 | $ hg debugindex -f 1 a |
|
55 | rev flag size link p1 p2 nodeid | |
|
56 | 0 0000 2 0 -1 -1 b789fdd96dc2 | |
|
57 | ||
|
58 | $ hg --verbose debugindex -f 1 a | |
|
49 | 59 | rev flag offset length size link p1 p2 nodeid |
|
50 | 60 | 0 0000 0 3 2 0 -1 -1 b789fdd96dc2 |
|
61 | ||
|
51 | 62 | $ hg --debug debugindex -f 1 a |
|
52 | 63 | rev flag offset length size link p1 p2 nodeid |
|
53 | 64 | 0 0000 0 3 2 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 |
@@ -64,12 +64,12 b'' | |||
|
64 | 64 | summary: test |
|
65 | 65 | |
|
66 | 66 | $ hg debugindex --changelog |
|
67 |
rev |
|
|
68 |
0 |
|
|
69 |
1 |
|
|
70 |
2 |
|
|
71 |
3 |
|
|
72 |
4 |
|
|
67 | rev linkrev nodeid p1 p2 | |
|
68 | 0 0 5e0375449e74 000000000000 000000000000 | |
|
69 | 1 1 96155394af80 5e0375449e74 000000000000 | |
|
70 | 2 2 92cc4c306b19 5e0375449e74 000000000000 | |
|
71 | 3 3 e16a66a37edd 92cc4c306b19 96155394af80 | |
|
72 | 4 4 2ee31f665a86 96155394af80 92cc4c306b19 | |
|
73 | 73 | |
|
74 | 74 | revision 1 |
|
75 | 75 | $ hg manifest --debug 1 |
@@ -89,9 +89,9 b' revision 4' | |||
|
89 | 89 | 79d7492df40aa0fa093ec4209be78043c181f094 644 b |
|
90 | 90 | |
|
91 | 91 | $ hg debugindex a |
|
92 |
rev |
|
|
93 |
0 |
|
|
94 |
1 |
|
|
92 | rev linkrev nodeid p1 p2 | |
|
93 | 0 0 2ed2a3912a0b 000000000000 000000000000 | |
|
94 | 1 1 79d7492df40a 2ed2a3912a0b 000000000000 | |
|
95 | 95 | |
|
96 | 96 | $ hg verify |
|
97 | 97 | checking changesets |
@@ -16,6 +16,6 b' Issue351: mq: qrefresh can create extra ' | |||
|
16 | 16 | $ hg qrefresh |
|
17 | 17 | |
|
18 | 18 | $ hg debugindex b |
|
19 |
rev |
|
|
20 |
0 |
|
|
19 | rev linkrev nodeid p1 p2 | |
|
20 | 0 0 1e88685f5dde 000000000000 000000000000 | |
|
21 | 21 |
@@ -73,11 +73,11 b' Merging:' | |||
|
73 | 73 | main: we should have a merge here: |
|
74 | 74 | |
|
75 | 75 | $ hg debugindex --changelog |
|
76 |
rev |
|
|
77 |
0 |
|
|
78 |
1 |
|
|
79 |
2 |
|
|
80 |
3 |
|
|
76 | rev linkrev nodeid p1 p2 | |
|
77 | 0 0 cdca01651b96 000000000000 000000000000 | |
|
78 | 1 1 f6718a9cb7f3 cdca01651b96 000000000000 | |
|
79 | 2 2 bdd988058d16 cdca01651b96 000000000000 | |
|
80 | 3 3 d8a521142a3c f6718a9cb7f3 bdd988058d16 | |
|
81 | 81 | |
|
82 | 82 | log should show foo and quux changed: |
|
83 | 83 | |
@@ -97,32 +97,32 b' log should show foo and quux changed:' | |||
|
97 | 97 | foo: we should have a merge here: |
|
98 | 98 | |
|
99 | 99 | $ hg debugindex foo |
|
100 |
rev |
|
|
101 |
0 |
|
|
102 |
1 |
|
|
103 |
2 |
|
|
104 |
3 |
|
|
100 | rev linkrev nodeid p1 p2 | |
|
101 | 0 0 b8e02f643373 000000000000 000000000000 | |
|
102 | 1 1 2ffeddde1b65 b8e02f643373 000000000000 | |
|
103 | 2 2 33d1fb69067a b8e02f643373 000000000000 | |
|
104 | 3 3 aa27919ee430 2ffeddde1b65 33d1fb69067a | |
|
105 | 105 | |
|
106 | 106 | bar: we should not have a merge here: |
|
107 | 107 | |
|
108 | 108 | $ hg debugindex bar |
|
109 |
rev |
|
|
110 |
0 |
|
|
111 |
1 |
|
|
109 | rev linkrev nodeid p1 p2 | |
|
110 | 0 0 b8e02f643373 000000000000 000000000000 | |
|
111 | 1 2 33d1fb69067a b8e02f643373 000000000000 | |
|
112 | 112 | |
|
113 | 113 | baz: we should not have a merge here: |
|
114 | 114 | |
|
115 | 115 | $ hg debugindex baz |
|
116 |
rev |
|
|
117 |
0 |
|
|
118 |
1 |
|
|
116 | rev linkrev nodeid p1 p2 | |
|
117 | 0 0 b8e02f643373 000000000000 000000000000 | |
|
118 | 1 1 2ffeddde1b65 b8e02f643373 000000000000 | |
|
119 | 119 | |
|
120 | 120 | quux: we should not have a merge here: |
|
121 | 121 | |
|
122 | 122 | $ hg debugindex quux |
|
123 |
rev |
|
|
124 |
0 |
|
|
125 |
1 |
|
|
123 | rev linkrev nodeid p1 p2 | |
|
124 | 0 0 b8e02f643373 000000000000 000000000000 | |
|
125 | 1 3 6128c0f33108 b8e02f643373 000000000000 | |
|
126 | 126 | |
|
127 | 127 | Manifest entries should match tips of all files: |
|
128 | 128 |
@@ -144,14 +144,14 b' the changelog should mention file a:' | |||
|
144 | 144 | -rwxr-x--- |
|
145 | 145 | |
|
146 | 146 | $ hg debugindex a |
|
147 |
rev |
|
|
148 |
|
|
|
147 | rev linkrev nodeid p1 p2 | |
|
148 | 0 0 b80de5d13875 000000000000 000000000000 | |
|
149 | 149 | $ hg debugindex -R ../test2 a |
|
150 |
rev |
|
|
151 |
|
|
|
150 | rev linkrev nodeid p1 p2 | |
|
151 | 0 0 b80de5d13875 000000000000 000000000000 | |
|
152 | 152 | $ hg debugindex -R ../test1 a |
|
153 |
rev |
|
|
154 |
|
|
|
155 |
1 |
|
|
153 | rev linkrev nodeid p1 p2 | |
|
154 | 0 0 b80de5d13875 000000000000 000000000000 | |
|
155 | 1 1 7fe919cc0336 b80de5d13875 000000000000 | |
|
156 | 156 | |
|
157 | 157 | $ cd .. |
@@ -48,8 +48,8 b' revision.' | |||
|
48 | 48 | c6fc755d7e68f49f880599da29f15add41f42f5a 644 foo |
|
49 | 49 | |
|
50 | 50 | $ hg debugindex foo |
|
51 |
rev |
|
|
52 |
0 |
|
|
53 |
1 |
|
|
54 |
2 |
|
|
51 | rev linkrev nodeid p1 p2 | |
|
52 | 0 0 2ed2a3912a0b 000000000000 000000000000 | |
|
53 | 1 1 6f4310b00b9a 2ed2a3912a0b 000000000000 | |
|
54 | 2 2 c6fc755d7e68 6f4310b00b9a 000000000000 | |
|
55 | 55 |
@@ -35,17 +35,17 b' Test with the merge on 3 having the rena' | |||
|
35 | 35 | $ hg ci -m '3: merge with local rename' |
|
36 | 36 | |
|
37 | 37 | $ hg debugindex bar |
|
38 |
rev |
|
|
39 |
0 |
|
|
40 |
1 |
|
|
38 | rev linkrev nodeid p1 p2 | |
|
39 | 0 2 d35118874825 000000000000 000000000000 | |
|
40 | 1 3 5345f5ab8abd 000000000000 d35118874825 | |
|
41 | 41 | |
|
42 | 42 | $ hg debugrename bar |
|
43 | 43 | bar renamed from foo:9e25c27b87571a1edee5ae4dddee5687746cc8e2 |
|
44 | 44 | |
|
45 | 45 | $ hg debugindex foo |
|
46 |
rev |
|
|
47 |
0 |
|
|
48 |
1 |
|
|
46 | rev linkrev nodeid p1 p2 | |
|
47 | 0 0 690b295714ae 000000000000 000000000000 | |
|
48 | 1 1 9e25c27b8757 690b295714ae 000000000000 | |
|
49 | 49 | |
|
50 | 50 | |
|
51 | 51 | Revert the content change from rev 2: |
@@ -88,11 +88,11 b' This should use bar@rev2 as the ancestor' | |||
|
88 | 88 | $ hg ci -m '5: merge' |
|
89 | 89 | |
|
90 | 90 | $ hg debugindex bar |
|
91 |
rev |
|
|
92 |
0 |
|
|
93 |
1 |
|
|
94 |
2 |
|
|
95 |
3 |
|
|
91 | rev linkrev nodeid p1 p2 | |
|
92 | 0 2 d35118874825 000000000000 000000000000 | |
|
93 | 1 3 5345f5ab8abd 000000000000 d35118874825 | |
|
94 | 2 4 ff4b45017382 d35118874825 000000000000 | |
|
95 | 3 5 3701b4893544 ff4b45017382 5345f5ab8abd | |
|
96 | 96 | |
|
97 | 97 | |
|
98 | 98 | Same thing, but with the merge on 3 having the rename |
@@ -123,17 +123,17 b' on the remote parent:' | |||
|
123 | 123 | $ hg ci -m '3: merge with remote rename' |
|
124 | 124 | |
|
125 | 125 | $ hg debugindex bar |
|
126 |
rev |
|
|
127 |
0 |
|
|
128 |
1 |
|
|
126 | rev linkrev nodeid p1 p2 | |
|
127 | 0 2 d35118874825 000000000000 000000000000 | |
|
128 | 1 3 5345f5ab8abd 000000000000 d35118874825 | |
|
129 | 129 | |
|
130 | 130 | $ hg debugrename bar |
|
131 | 131 | bar renamed from foo:9e25c27b87571a1edee5ae4dddee5687746cc8e2 |
|
132 | 132 | |
|
133 | 133 | $ hg debugindex foo |
|
134 |
rev |
|
|
135 |
0 |
|
|
136 |
1 |
|
|
134 | rev linkrev nodeid p1 p2 | |
|
135 | 0 0 690b295714ae 000000000000 000000000000 | |
|
136 | 1 1 9e25c27b8757 690b295714ae 000000000000 | |
|
137 | 137 | |
|
138 | 138 | |
|
139 | 139 | Revert the content change from rev 2: |
@@ -176,10 +176,10 b' This should use bar@rev2 as the ancestor' | |||
|
176 | 176 | $ hg ci -m '5: merge' |
|
177 | 177 | |
|
178 | 178 | $ hg debugindex bar |
|
179 |
rev |
|
|
180 |
0 |
|
|
181 |
1 |
|
|
182 |
2 |
|
|
183 |
3 |
|
|
179 | rev linkrev nodeid p1 p2 | |
|
180 | 0 2 d35118874825 000000000000 000000000000 | |
|
181 | 1 3 5345f5ab8abd 000000000000 d35118874825 | |
|
182 | 2 4 ff4b45017382 d35118874825 000000000000 | |
|
183 | 3 5 3701b4893544 ff4b45017382 5345f5ab8abd | |
|
184 | 184 | |
|
185 | 185 | $ cd .. |
@@ -109,12 +109,12 b' pull and merge from test-a again' | |||
|
109 | 109 | three |
|
110 | 110 | |
|
111 | 111 | $ hg debugindex test.txt |
|
112 |
rev |
|
|
113 |
0 |
|
|
114 |
1 |
|
|
115 |
2 |
|
|
116 |
3 |
|
|
117 |
4 |
|
|
112 | rev linkrev nodeid p1 p2 | |
|
113 | 0 0 01365c4cca56 000000000000 000000000000 | |
|
114 | 1 1 7b013192566a 01365c4cca56 000000000000 | |
|
115 | 2 2 8fe46a3eb557 01365c4cca56 000000000000 | |
|
116 | 3 3 fc3148072371 7b013192566a 8fe46a3eb557 | |
|
117 | 4 4 d40249267ae3 8fe46a3eb557 000000000000 | |
|
118 | 118 | |
|
119 | 119 | $ hg log |
|
120 | 120 | changeset: 4:40d11a4173a8 |
@@ -15,20 +15,20 b'' | |||
|
15 | 15 | adding foo/bar/f |
|
16 | 16 | adding foo/f |
|
17 | 17 | $ hg debugindex -m |
|
18 |
rev |
|
|
19 |
0 |
|
|
18 | rev linkrev nodeid p1 p2 | |
|
19 | 0 0 14a5d056d75a 000000000000 000000000000 | |
|
20 | 20 | $ hg debugindex --dir foo |
|
21 |
rev |
|
|
22 |
0 |
|
|
21 | rev linkrev nodeid p1 p2 | |
|
22 | 0 0 e635c7857aef 000000000000 000000000000 | |
|
23 | 23 | $ hg debugindex --dir foo/ |
|
24 |
rev |
|
|
25 |
0 |
|
|
24 | rev linkrev nodeid p1 p2 | |
|
25 | 0 0 e635c7857aef 000000000000 000000000000 | |
|
26 | 26 | $ hg debugindex --dir foo/bar |
|
27 |
rev |
|
|
28 |
0 |
|
|
27 | rev linkrev nodeid p1 p2 | |
|
28 | 0 0 e091d4224761 000000000000 000000000000 | |
|
29 | 29 | $ hg debugindex --dir foo/bar/ |
|
30 |
rev |
|
|
31 |
0 |
|
|
30 | rev linkrev nodeid p1 p2 | |
|
31 | 0 0 e091d4224761 000000000000 000000000000 | |
|
32 | 32 | $ hg debugdata -m 0 |
|
33 | 33 | foo\x00e635c7857aef92ac761ce5741a99da159abbbb24t (esc) |
|
34 | 34 | $ hg debugdata --dir foo 0 |
@@ -33,11 +33,11 b' create full repo' | |||
|
33 | 33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
34 | 34 | $ cd narrow |
|
35 | 35 | $ hg debugindex -c |
|
36 |
rev |
|
|
37 |
0 |
|
|
38 |
1 |
|
|
39 |
2 |
|
|
40 |
3 |
|
|
36 | rev linkrev nodeid p1 p2 | |
|
37 | 0 0 9958b1af2add 000000000000 000000000000 | |
|
38 | 1 1 2db4ce2a3bfe 9958b1af2add 000000000000 | |
|
39 | 2 2 0980ee31a742 2db4ce2a3bfe 000000000000 | |
|
40 | 3 3 4410145019b7 0980ee31a742 000000000000 | |
|
41 | 41 | |
|
42 | 42 | $ hg update -q 0 |
|
43 | 43 |
@@ -144,9 +144,9 b' Test corrupted p1/p2 fields that could c' | |||
|
144 | 144 | > EOF |
|
145 | 145 | |
|
146 | 146 | $ hg -R limit debugindex -f1 -c |
|
147 |
rev flag |
|
|
148 |
0 0000 |
|
|
149 |
1 0000 |
|
|
147 | rev flag size link p1 p2 nodeid | |
|
148 | 0 0000 62 0 2 -1 7c31755bf9b5 | |
|
149 | 1 0000 65 1 0 2 26333235a41c | |
|
150 | 150 | |
|
151 | 151 | $ hg -R limit debugdeltachain -c |
|
152 | 152 | rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio |
@@ -154,9 +154,9 b' Test corrupted p1/p2 fields that could c' | |||
|
154 | 154 | 1 2 1 -1 base 66 65 66 1.01538 66 0 0.00000 |
|
155 | 155 | |
|
156 | 156 | $ hg -R segv debugindex -f1 -c |
|
157 |
rev flag |
|
|
158 |
0 0000 |
|
|
159 |
1 0000 |
|
|
157 | rev flag size link p1 p2 nodeid | |
|
158 | 0 0000 62 0 65536 -1 7c31755bf9b5 | |
|
159 | 1 0000 65 1 0 65536 26333235a41c | |
|
160 | 160 | |
|
161 | 161 | $ hg -R segv debugdeltachain -c |
|
162 | 162 | rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio |
@@ -64,9 +64,9 b'' | |||
|
64 | 64 | $ hg ci -m "merge" |
|
65 | 65 | |
|
66 | 66 | $ hg debugindex b |
|
67 |
rev |
|
|
68 |
0 |
|
|
69 |
1 |
|
|
67 | rev linkrev nodeid p1 p2 | |
|
68 | 0 1 57eacc201a7f 000000000000 000000000000 | |
|
69 | 1 3 4727ba907962 000000000000 57eacc201a7f | |
|
70 | 70 | |
|
71 | 71 | $ hg debugrename b |
|
72 | 72 | b renamed from a:dd03b83622e78778b403775d0d074b9ac7387a66 |
@@ -16,8 +16,8 b' this should be stored as a delta against' | |||
|
16 | 16 | created new head |
|
17 | 17 | |
|
18 | 18 | $ hg debugindex foo |
|
19 |
rev |
|
|
20 |
|
|
|
21 |
1 |
|
|
19 | rev linkrev nodeid p1 p2 | |
|
20 | 0 0 b80de5d13875 000000000000 000000000000 | |
|
21 | 1 1 0376abec49b8 000000000000 000000000000 | |
|
22 | 22 | |
|
23 | 23 | $ cd .. |
@@ -40,8 +40,8 b' Test for CVE-2016-3630' | |||
|
40 | 40 | ... .decode("base64").decode("zlib")) |
|
41 | 41 | |
|
42 | 42 | $ hg debugindex a.i |
|
43 |
rev |
|
|
44 |
0 |
|
|
45 |
1 |
|
|
43 | rev linkrev nodeid p1 p2 | |
|
44 | 0 2 99e0332bd498 000000000000 000000000000 | |
|
45 | 1 3 6674f57a23d8 99e0332bd498 000000000000 | |
|
46 | 46 | $ hg debugdata a.i 1 2>&1 | egrep 'Error:.*decoded' |
|
47 | 47 | (mercurial\.\w+\.mpatch\.)?mpatchError: patch cannot be decoded (re) |
@@ -34,12 +34,12 b' 2 1 0 2 0 1 2' | |||
|
34 | 34 | $ hg clone -q -U -r -1 -r -2 -r -3 -r -4 -r -6 orig crossed |
|
35 | 35 | $ cd crossed |
|
36 | 36 | $ hg debugindex --manifest |
|
37 |
rev |
|
|
38 |
0 |
|
|
39 |
1 |
|
|
40 |
2 1 |
|
|
41 |
3 2 |
|
|
42 |
4 4 |
|
|
37 | rev linkrev nodeid p1 p2 | |
|
38 | 0 0 6f105cbb914d 000000000000 000000000000 | |
|
39 | 1 3 1b55917b3699 000000000000 000000000000 | |
|
40 | 2 1 8f3d04e263e5 000000000000 000000000000 | |
|
41 | 3 2 f0ef8726ac4f 000000000000 000000000000 | |
|
42 | 4 4 0b76e38b4070 000000000000 000000000000 | |
|
43 | 43 | |
|
44 | 44 | $ for i in 012 021 102 120 201 210 manifest-file; do |
|
45 | 45 | > echo $i |
@@ -47,45 +47,45 b' 2 1 0 2 0 1 2' | |||
|
47 | 47 | > echo |
|
48 | 48 | > done |
|
49 | 49 | 012 |
|
50 |
rev |
|
|
51 |
0 |
|
|
52 |
1 |
|
|
53 |
2 |
|
|
50 | rev linkrev nodeid p1 p2 | |
|
51 | 0 0 b8e02f643373 000000000000 000000000000 | |
|
52 | 1 1 5d9299349fc0 000000000000 000000000000 | |
|
53 | 2 2 2661d26c6496 000000000000 000000000000 | |
|
54 | 54 | |
|
55 | 55 | 021 |
|
56 |
rev |
|
|
57 |
0 |
|
|
58 |
1 |
|
|
59 |
2 |
|
|
56 | rev linkrev nodeid p1 p2 | |
|
57 | 0 0 b8e02f643373 000000000000 000000000000 | |
|
58 | 1 2 5d9299349fc0 000000000000 000000000000 | |
|
59 | 2 1 2661d26c6496 000000000000 000000000000 | |
|
60 | 60 | |
|
61 | 61 | 102 |
|
62 |
rev |
|
|
63 |
0 |
|
|
64 |
1 |
|
|
65 |
2 |
|
|
62 | rev linkrev nodeid p1 p2 | |
|
63 | 0 1 b8e02f643373 000000000000 000000000000 | |
|
64 | 1 0 5d9299349fc0 000000000000 000000000000 | |
|
65 | 2 2 2661d26c6496 000000000000 000000000000 | |
|
66 | 66 | |
|
67 | 67 | 120 |
|
68 |
rev |
|
|
69 |
0 |
|
|
70 |
1 |
|
|
71 |
2 |
|
|
68 | rev linkrev nodeid p1 p2 | |
|
69 | 0 1 b8e02f643373 000000000000 000000000000 | |
|
70 | 1 2 5d9299349fc0 000000000000 000000000000 | |
|
71 | 2 0 2661d26c6496 000000000000 000000000000 | |
|
72 | 72 | |
|
73 | 73 | 201 |
|
74 |
rev |
|
|
75 |
0 |
|
|
76 |
1 |
|
|
77 |
2 |
|
|
74 | rev linkrev nodeid p1 p2 | |
|
75 | 0 2 b8e02f643373 000000000000 000000000000 | |
|
76 | 1 0 5d9299349fc0 000000000000 000000000000 | |
|
77 | 2 1 2661d26c6496 000000000000 000000000000 | |
|
78 | 78 | |
|
79 | 79 | 210 |
|
80 |
rev |
|
|
81 |
0 |
|
|
82 |
1 |
|
|
83 |
2 |
|
|
80 | rev linkrev nodeid p1 p2 | |
|
81 | 0 2 b8e02f643373 000000000000 000000000000 | |
|
82 | 1 1 5d9299349fc0 000000000000 000000000000 | |
|
83 | 2 0 2661d26c6496 000000000000 000000000000 | |
|
84 | 84 | |
|
85 | 85 | manifest-file |
|
86 |
rev |
|
|
87 |
0 |
|
|
88 |
1 |
|
|
86 | rev linkrev nodeid p1 p2 | |
|
87 | 0 3 b8e02f643373 000000000000 000000000000 | |
|
88 | 1 4 5d9299349fc0 000000000000 000000000000 | |
|
89 | 89 | |
|
90 | 90 | $ cd .. |
|
91 | 91 | $ for i in 0 1 2 3 4; do |
@@ -139,13 +139,13 b' Merge creates 2-parent revision of direc' | |||
|
139 | 139 | $ cat dir1/b |
|
140 | 140 | 6 |
|
141 | 141 | $ hg debugindex --dir dir1 |
|
142 |
rev |
|
|
143 |
0 |
|
|
144 |
1 |
|
|
145 |
2 |
|
|
146 |
3 |
|
|
147 |
4 |
|
|
148 |
5 |
|
|
142 | rev linkrev nodeid p1 p2 | |
|
143 | 0 1 8b3ffd73f901 000000000000 000000000000 | |
|
144 | 1 2 68e9d057c5a8 8b3ffd73f901 000000000000 | |
|
145 | 2 4 4698198d2624 68e9d057c5a8 000000000000 | |
|
146 | 3 5 44844058ccce 68e9d057c5a8 000000000000 | |
|
147 | 4 6 bf3d9b744927 68e9d057c5a8 000000000000 | |
|
148 | 5 7 dde7c0af2a03 bf3d9b744927 44844058ccce | |
|
149 | 149 | |
|
150 | 150 | Merge keeping directory from parent 1 does not create revlog entry. (Note that |
|
151 | 151 | dir1's manifest does change, but only because dir1/a's filelog changes.) |
@@ -285,13 +285,13 b' Merge of two trees' | |||
|
285 | 285 | Parent of tree root manifest should be flat manifest, and two for merge |
|
286 | 286 | |
|
287 | 287 | $ hg debugindex -m |
|
288 |
rev |
|
|
289 |
0 |
|
|
290 |
1 |
|
|
291 |
2 |
|
|
292 |
3 |
|
|
293 |
4 |
|
|
294 |
5 |
|
|
288 | rev linkrev nodeid p1 p2 | |
|
289 | 0 0 40536115ed9e 000000000000 000000000000 | |
|
290 | 1 1 f3376063c255 40536115ed9e 000000000000 | |
|
291 | 2 2 5d9b9da231a2 40536115ed9e 000000000000 | |
|
292 | 3 3 d17d663cbd8a 5d9b9da231a2 f3376063c255 | |
|
293 | 4 4 51e32a8c60ee f3376063c255 000000000000 | |
|
294 | 5 5 cc5baa78b230 5d9b9da231a2 f3376063c255 | |
|
295 | 295 | |
|
296 | 296 | |
|
297 | 297 | Status across flat/tree boundary should work |
@@ -305,16 +305,16 b' Status across flat/tree boundary should ' | |||
|
305 | 305 | Turning off treemanifest config has no effect |
|
306 | 306 | |
|
307 | 307 | $ hg debugindex --dir dir1 |
|
308 |
rev |
|
|
309 |
0 |
|
|
310 |
1 |
|
|
308 | rev linkrev nodeid p1 p2 | |
|
309 | 0 4 064927a0648a 000000000000 000000000000 | |
|
310 | 1 5 25ecb8cb8618 000000000000 000000000000 | |
|
311 | 311 | $ echo 2 > dir1/a |
|
312 | 312 | $ hg --config experimental.treemanifest=False ci -qm 'modify dir1/a' |
|
313 | 313 | $ hg debugindex --dir dir1 |
|
314 |
rev |
|
|
315 |
0 |
|
|
316 |
1 |
|
|
317 |
2 |
|
|
314 | rev linkrev nodeid p1 p2 | |
|
315 | 0 4 064927a0648a 000000000000 000000000000 | |
|
316 | 1 5 25ecb8cb8618 000000000000 000000000000 | |
|
317 | 2 6 5b16163a30c6 25ecb8cb8618 000000000000 | |
|
318 | 318 | |
|
319 | 319 | Stripping and recovering changes should work |
|
320 | 320 | |
@@ -324,9 +324,9 b' Stripping and recovering changes should ' | |||
|
324 | 324 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
325 | 325 | saved backup bundle to $TESTTMP/repo-mixed/.hg/strip-backup/51cfd7b1e13b-78a2f3ed-backup.hg |
|
326 | 326 | $ hg debugindex --dir dir1 |
|
327 |
rev |
|
|
328 |
0 |
|
|
329 |
1 |
|
|
327 | rev linkrev nodeid p1 p2 | |
|
328 | 0 4 064927a0648a 000000000000 000000000000 | |
|
329 | 1 5 25ecb8cb8618 000000000000 000000000000 | |
|
330 | 330 | $ hg incoming .hg/strip-backup/* |
|
331 | 331 | comparing with .hg/strip-backup/*-backup.hg (glob) |
|
332 | 332 | searching for changes |
@@ -349,10 +349,10 b' Stripping and recovering changes should ' | |||
|
349 | 349 | saved backup bundle to $TESTTMP/repo-mixed/.hg/strip-backup/*-backup.hg (glob) |
|
350 | 350 | $ hg unbundle -q .hg/strip-backup/* |
|
351 | 351 | $ hg debugindex --dir dir1 |
|
352 |
rev |
|
|
353 |
0 |
|
|
354 |
1 |
|
|
355 |
2 |
|
|
352 | rev linkrev nodeid p1 p2 | |
|
353 | 0 4 064927a0648a 000000000000 000000000000 | |
|
354 | 1 5 25ecb8cb8618 000000000000 000000000000 | |
|
355 | 2 6 5b16163a30c6 25ecb8cb8618 000000000000 | |
|
356 | 356 | $ hg st --change tip |
|
357 | 357 | M dir1/a |
|
358 | 358 |
General Comments 0
You need to be logged in to leave comments.
Login now