Mercurial > public > mercurial-scm > hg
annotate tests/test-debugcommands.t @ 53042:cdd7bf612c7b stable tip
bundle-spec: properly format boolean parameter (issue6960)
This was breaking automatic clone bundle generation. This changeset fixes it and
add a test to catch it in the future.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 11 Mar 2025 02:29:42 +0100 |
parents | 4d2b496cb7b8 |
children |
rev | line source |
---|---|
26918
0438df737fb7
test: enable generaldelta in 'test-debugcommand.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24503
diff
changeset
|
1 $ cat << EOF >> $HGRCPATH |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
2 > [ui] |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
3 > interactive=yes |
26918
0438df737fb7
test: enable generaldelta in 'test-debugcommand.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24503
diff
changeset
|
4 > EOF |
0438df737fb7
test: enable generaldelta in 'test-debugcommand.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24503
diff
changeset
|
5 |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
6 $ hg init debugrevlog |
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
7 $ cd debugrevlog |
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
8 $ echo a > a |
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
9 $ hg ci -Am adda |
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
10 adding a |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
11 $ hg rm . |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
12 removing a |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
13 $ hg ci -Am make-it-empty |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
14 $ hg revert --all -r 0 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
15 adding a |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
16 $ hg ci -Am make-it-full |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
17 $ hg debugrevlog -c |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
18 format : 1 |
51178
dcaa2df1f688
changelog: never inline changelog
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51073
diff
changeset
|
19 flags : (none) |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
20 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
21 revisions : 3 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
22 merges : 0 ( 0.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
23 normal : 3 (100.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
24 revisions : 3 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
25 empty : 0 ( 0.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
26 text : 0 (100.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
27 delta : 0 (100.00%) |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
28 snapshot : 3 (100.00%) |
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
29 lvl-0 : 3 (100.00%) |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
30 deltas : 0 ( 0.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
31 revision size : 191 |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
32 snapshot : 191 (100.00%) |
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
33 lvl-0 : 191 (100.00%) |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
34 deltas : 0 ( 0.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
35 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
36 chunks : 3 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
37 0x75 (u) : 3 (100.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
38 chunks size : 191 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
39 0x75 (u) : 191 (100.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
40 |
49662
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
41 |
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
42 total-stored-content: 188 bytes |
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
43 |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
44 avg chain length : 0 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
45 max chain length : 0 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
46 max chain reach : 67 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
47 compression ratio : 0 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
48 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
49 uncompressed data size (min/max/avg) : 57 / 66 / 62 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
50 full revision size (min/max/avg) : 58 / 67 / 63 |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
51 inter-snapshot size (min/max/avg) : 0 / 0 / 0 |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
52 delta size (min/max/avg) : 0 / 0 / 0 |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
53 $ hg debugrevlog -m |
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
54 format : 1 |
26918
0438df737fb7
test: enable generaldelta in 'test-debugcommand.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24503
diff
changeset
|
55 flags : inline, generaldelta |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
56 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
57 revisions : 3 |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
58 merges : 0 ( 0.00%) |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
59 normal : 3 (100.00%) |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
60 revisions : 3 |
39081
195ed920653e
debugrevlog: track empty revlog entries
Boris Feld <boris.feld@octobus.net>
parents:
38781
diff
changeset
|
61 empty : 1 (33.33%) |
39082
a456c603a83d
debugrevlog: display details about empty revision
Boris Feld <boris.feld@octobus.net>
parents:
39081
diff
changeset
|
62 text : 1 (100.00%) |
a456c603a83d
debugrevlog: display details about empty revision
Boris Feld <boris.feld@octobus.net>
parents:
39081
diff
changeset
|
63 delta : 0 ( 0.00%) |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
64 snapshot : 2 (66.67%) |
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
65 lvl-0 : 2 (66.67%) |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
66 deltas : 0 ( 0.00%) |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
67 revision size : 88 |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
68 snapshot : 88 (100.00%) |
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
69 lvl-0 : 88 (100.00%) |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
70 deltas : 0 ( 0.00%) |
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
71 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
72 chunks : 3 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
73 empty : 1 (33.33%) |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
74 0x75 (u) : 2 (66.67%) |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
75 chunks size : 88 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
76 empty : 0 ( 0.00%) |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
77 0x75 (u) : 88 (100.00%) |
30452
932b18c95e11
commands: print chunk type in debugrevlog
Gregory Szorc <gregory.szorc@gmail.com>
parents:
27263
diff
changeset
|
78 |
49662
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
79 |
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
80 total-stored-content: 86 bytes |
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
81 |
33062
e21b750c9b9e
debugrevlog: align chain length, reach, and compression ratio
Yuya Nishihara <yuya@tcha.org>
parents:
33057
diff
changeset
|
82 avg chain length : 0 |
e21b750c9b9e
debugrevlog: align chain length, reach, and compression ratio
Yuya Nishihara <yuya@tcha.org>
parents:
33057
diff
changeset
|
83 max chain length : 0 |
e21b750c9b9e
debugrevlog: align chain length, reach, and compression ratio
Yuya Nishihara <yuya@tcha.org>
parents:
33057
diff
changeset
|
84 max chain reach : 44 |
e21b750c9b9e
debugrevlog: align chain length, reach, and compression ratio
Yuya Nishihara <yuya@tcha.org>
parents:
33057
diff
changeset
|
85 compression ratio : 0 |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
86 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
87 uncompressed data size (min/max/avg) : 0 / 43 / 28 |
39081
195ed920653e
debugrevlog: track empty revlog entries
Boris Feld <boris.feld@octobus.net>
parents:
38781
diff
changeset
|
88 full revision size (min/max/avg) : 44 / 44 / 44 |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
89 inter-snapshot size (min/max/avg) : 0 / 0 / 0 |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
90 delta size (min/max/avg) : 0 / 0 / 0 |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
91 $ hg debugrevlog a |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
92 format : 1 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
93 flags : inline, generaldelta |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
94 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
95 revisions : 1 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
96 merges : 0 ( 0.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
97 normal : 1 (100.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
98 revisions : 1 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
99 empty : 0 ( 0.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
100 text : 0 (100.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
101 delta : 0 (100.00%) |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
102 snapshot : 1 (100.00%) |
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
103 lvl-0 : 1 (100.00%) |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
104 deltas : 0 ( 0.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
105 revision size : 3 |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
106 snapshot : 3 (100.00%) |
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
107 lvl-0 : 3 (100.00%) |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
108 deltas : 0 ( 0.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
109 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
110 chunks : 1 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
111 0x75 (u) : 1 (100.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
112 chunks size : 3 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
113 0x75 (u) : 3 (100.00%) |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
114 |
49662
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
115 |
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
116 total-stored-content: 2 bytes |
7aea9babac5d
debugrevlog: display total stored information
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49266
diff
changeset
|
117 |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
118 avg chain length : 0 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
119 max chain length : 0 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
120 max chain reach : 3 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
121 compression ratio : 0 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
122 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
123 uncompressed data size (min/max/avg) : 2 / 2 / 2 |
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
124 full revision size (min/max/avg) : 3 / 3 / 3 |
39153
9d6fab487c13
debugrevlog: display snapshot details per depth
Boris Feld <boris.feld@octobus.net>
parents:
39151
diff
changeset
|
125 inter-snapshot size (min/max/avg) : 0 / 0 / 0 |
39148
1464183343b3
debugrevlog: fix for non-manifest object
Boris Feld <boris.feld@octobus.net>
parents:
39082
diff
changeset
|
126 delta size (min/max/avg) : 0 / 0 / 0 |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
127 |
37283
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
128 Test debugindex, with and without the --verbose/--debug flag |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
129 $ hg debugrevlogindex a |
37283
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
130 rev linkrev nodeid p1 p2 |
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
131 0 0 b789fdd96dc2 000000000000 000000000000 |
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
132 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
133 $ hg --verbose debugrevlogindex a |
37282
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37053
diff
changeset
|
134 rev offset length linkrev nodeid p1 p2 |
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37053
diff
changeset
|
135 0 0 3 0 b789fdd96dc2 000000000000 000000000000 |
37283
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
136 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
137 $ hg --debug debugrevlogindex a |
37282
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37053
diff
changeset
|
138 rev offset length linkrev nodeid p1 p2 |
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37053
diff
changeset
|
139 0 0 3 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 |
37283
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
140 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
141 $ hg debugrevlogindex -f 1 a |
37283
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
142 rev flag size link p1 p2 nodeid |
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
143 0 0000 2 0 -1 -1 b789fdd96dc2 |
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
144 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
145 $ hg --verbose debugrevlogindex -f 1 a |
37282
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37053
diff
changeset
|
146 rev flag offset length size link p1 p2 nodeid |
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37053
diff
changeset
|
147 0 0000 0 3 2 0 -1 -1 b789fdd96dc2 |
37283
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37282
diff
changeset
|
148 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
149 $ hg --debug debugrevlogindex -f 1 a |
37282
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37053
diff
changeset
|
150 rev flag offset length size link p1 p2 nodeid |
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37053
diff
changeset
|
151 0 0000 0 3 2 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 |
23547
21446f4d5c62
debugindex: respect --debug flag to show full nodeids
Kyle Lippincott <spectral@google.com>
parents:
23256
diff
changeset
|
152 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
153 $ hg debugindex -c |
49252
4141951dacff
debugindex: rename the parent column to mention nodeid
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49251
diff
changeset
|
154 rev linkrev nodeid p1-nodeid p2-nodeid |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
155 0 0 07f494440405 000000000000 000000000000 |
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
156 1 1 8cccb4b5fec2 07f494440405 000000000000 |
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
157 2 2 b1e228c512c5 8cccb4b5fec2 000000000000 |
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
158 $ hg debugindex -c --debug |
49266
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
159 rev rank linkrev nodeid p1-rev p1-nodeid p2-rev p2-nodeid full-size delta-base flags comp-mode data-offset chunk-size sd-comp-mode sidedata-offset sd-chunk-size |
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
160 0 -1 0 07f4944404050f47db2e5c5071e0e84e7a27bba9 -1 0000000000000000000000000000000000000000 -1 0000000000000000000000000000000000000000 57 0 0 2 0 58 inline 0 0 |
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
161 1 -1 1 8cccb4b5fec20cafeb99dd01c26d4dee8ea4388a 0 07f4944404050f47db2e5c5071e0e84e7a27bba9 -1 0000000000000000000000000000000000000000 66 1 0 2 58 67 inline 0 0 |
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
162 2 -1 2 b1e228c512c5d7066d70562ed839c3323a62d6d2 1 8cccb4b5fec20cafeb99dd01c26d4dee8ea4388a -1 0000000000000000000000000000000000000000 65 2 0 2 125 66 inline 0 0 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
163 $ hg debugindex -m |
49252
4141951dacff
debugindex: rename the parent column to mention nodeid
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49251
diff
changeset
|
164 rev linkrev nodeid p1-nodeid p2-nodeid |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
165 0 0 a0c8bcbbb45c 000000000000 000000000000 |
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
166 1 1 57faf8a737ae a0c8bcbbb45c 000000000000 |
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
167 2 2 a35b10320954 57faf8a737ae 000000000000 |
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
168 $ hg debugindex -m --debug |
49266
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
169 rev rank linkrev nodeid p1-rev p1-nodeid p2-rev p2-nodeid full-size delta-base flags comp-mode data-offset chunk-size sd-comp-mode sidedata-offset sd-chunk-size |
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
170 0 -1 0 a0c8bcbbb45c63b90b70ad007bf38961f64f2af0 -1 0000000000000000000000000000000000000000 -1 0000000000000000000000000000000000000000 43 0 0 2 0 44 inline 0 0 |
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
171 1 -1 1 57faf8a737ae7faf490582941a82319ba6529dca 0 a0c8bcbbb45c63b90b70ad007bf38961f64f2af0 -1 0000000000000000000000000000000000000000 0 1 0 2 44 0 inline 0 0 |
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
172 2 -1 2 a35b103209548032201c16c7688cb2657f037a38 1 57faf8a737ae7faf490582941a82319ba6529dca -1 0000000000000000000000000000000000000000 43 2 0 2 44 44 inline 0 0 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
173 $ hg debugindex a |
49252
4141951dacff
debugindex: rename the parent column to mention nodeid
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49251
diff
changeset
|
174 rev linkrev nodeid p1-nodeid p2-nodeid |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
175 0 0 b789fdd96dc2 000000000000 000000000000 |
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
176 $ hg debugindex --debug a |
49266
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
177 rev rank linkrev nodeid p1-rev p1-nodeid p2-rev p2-nodeid full-size delta-base flags comp-mode data-offset chunk-size sd-comp-mode sidedata-offset sd-chunk-size |
da3e37ecacde
debugindex: add a `rank` column
Pierre-Yves DAVID <pierre-yves.david@octobus.net>
parents:
49265
diff
changeset
|
178 0 -1 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 -1 0000000000000000000000000000000000000000 -1 0000000000000000000000000000000000000000 2 0 0 2 0 3 inline 0 0 |
39282
828a45233036
debugcommands: introduce debugrevlogindex (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39153
diff
changeset
|
179 |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
180 debugdelta chain basic output |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
181 |
53005
8c85d139ff64
cleanup: remove the reporevlogstore condition in test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51987
diff
changeset
|
182 #if no-pure no-rust |
39980
d71e0ba34d9b
debugcommands: add a debugindexstats command
Martin von Zweigbergk <martinvonz@google.com>
parents:
39902
diff
changeset
|
183 $ hg debugindexstats |
d71e0ba34d9b
debugcommands: add a debugindexstats command
Martin von Zweigbergk <martinvonz@google.com>
parents:
39902
diff
changeset
|
184 node trie capacity: 4 |
d71e0ba34d9b
debugcommands: add a debugindexstats command
Martin von Zweigbergk <martinvonz@google.com>
parents:
39902
diff
changeset
|
185 node trie count: 2 |
d71e0ba34d9b
debugcommands: add a debugindexstats command
Martin von Zweigbergk <martinvonz@google.com>
parents:
39902
diff
changeset
|
186 node trie depth: 1 |
46884
cc3ad5c3af3b
persistent-nodemap: enable the feature by default when using Rust
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46874
diff
changeset
|
187 node trie last rev scanned: -1 (no-rust !) |
cc3ad5c3af3b
persistent-nodemap: enable the feature by default when using Rust
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46874
diff
changeset
|
188 node trie last rev scanned: 3 (rust !) |
51403
f8bf1a8e9181
phases: keep internal state as rev-num instead of node-id
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51397
diff
changeset
|
189 node trie lookups: 3 (no-rust !) |
46884
cc3ad5c3af3b
persistent-nodemap: enable the feature by default when using Rust
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46874
diff
changeset
|
190 node trie lookups: 2 (rust !) |
39980
d71e0ba34d9b
debugcommands: add a debugindexstats command
Martin von Zweigbergk <martinvonz@google.com>
parents:
39902
diff
changeset
|
191 node trie misses: 1 |
d71e0ba34d9b
debugcommands: add a debugindexstats command
Martin von Zweigbergk <martinvonz@google.com>
parents:
39902
diff
changeset
|
192 node trie splits: 1 |
d71e0ba34d9b
debugcommands: add a debugindexstats command
Martin von Zweigbergk <martinvonz@google.com>
parents:
39902
diff
changeset
|
193 revs in memory: 3 |
53005
8c85d139ff64
cleanup: remove the reporevlogstore condition in test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51987
diff
changeset
|
194 #else |
8c85d139ff64
cleanup: remove the reporevlogstore condition in test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51987
diff
changeset
|
195 $ hg debugindexstats |
8c85d139ff64
cleanup: remove the reporevlogstore condition in test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51987
diff
changeset
|
196 abort: debugindexstats only works with native C code |
8c85d139ff64
cleanup: remove the reporevlogstore condition in test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51987
diff
changeset
|
197 [255] |
40365
4f37af86d5d5
debugcommands: avoid stack trace from debugindexstats in pure mode
Martin von Zweigbergk <martinvonz@google.com>
parents:
40263
diff
changeset
|
198 #endif |
39980
d71e0ba34d9b
debugcommands: add a debugindexstats command
Martin von Zweigbergk <martinvonz@google.com>
parents:
39902
diff
changeset
|
199 |
53005
8c85d139ff64
cleanup: remove the reporevlogstore condition in test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51987
diff
changeset
|
200 #if no-pure |
51073
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
201 $ hg debugdeltachain -m --all-info |
49221
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
202 rev p1 p2 chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
203 0 -1 -1 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
204 1 0 -1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 0 0 1.00000 1 |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
205 2 1 -1 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
206 |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
207 $ hg debugdeltachain -m -T '{rev} {chainid} {chainlen}\n' |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
208 0 1 1 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
209 1 2 1 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
210 2 3 1 |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
211 |
51073
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
212 $ hg debugdeltachain -m -Tjson --size-info |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
213 [ |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
214 { |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
215 "chainid": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
216 "chainlen": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
217 "chainratio": 1.0232558139534884, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
218 "chainsize": 44, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
219 "compsize": 44, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
220 "deltatype": "base", |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
221 "p1": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
222 "p2": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
223 "prevrev": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
224 "rev": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
225 "uncompsize": 43 |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
226 }, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
227 { |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
228 "chainid": 2, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
229 "chainlen": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
230 "chainratio": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
231 "chainsize": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
232 "compsize": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
233 "deltatype": "base", |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
234 "p1": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
235 "p2": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
236 "prevrev": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
237 "rev": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
238 "uncompsize": 0 |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
239 }, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
240 { |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
241 "chainid": 3, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
242 "chainlen": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
243 "chainratio": 1.0232558139534884, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
244 "chainsize": 44, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
245 "compsize": 44, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
246 "deltatype": "base", |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
247 "p1": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
248 "p2": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
249 "prevrev": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
250 "rev": 2, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
251 "uncompsize": 43 |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
252 } |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
253 ] |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
254 |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
255 $ hg debugdeltachain -m -Tjson --all-info |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
256 [ |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
257 { |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
258 "chainid": 1, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
259 "chainlen": 1, |
49876
950c39918bd2
tests: drop `(py3 !)` output matching predicates
Matt Harbison <matt_harbison@yahoo.com>
parents:
49662
diff
changeset
|
260 "chainratio": 1.0232558139534884, |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
261 "chainsize": 44, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
262 "compsize": 44, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
263 "deltatype": "base", |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
264 "extradist": 0, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
265 "extraratio": 0.0, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
266 "largestblock": 44, |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
267 "lindist": 44, |
49221
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
268 "p1": -1, |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
269 "p2": -1, |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
270 "prevrev": -1, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
271 "readdensity": 1.0, |
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
272 "readsize": 44, |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
273 "rev": 0, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
274 "srchunks": 1, |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
275 "uncompsize": 43 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
276 }, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
277 { |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
278 "chainid": 2, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
279 "chainlen": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
280 "chainratio": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
281 "chainsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
282 "compsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
283 "deltatype": "base", |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
284 "extradist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
285 "extraratio": 0, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
286 "largestblock": 0, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
287 "lindist": 0, |
49221
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
288 "p1": 0, |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
289 "p2": -1, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
290 "prevrev": -1, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
291 "readdensity": 1, |
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
292 "readsize": 0, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
293 "rev": 1, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
294 "srchunks": 1, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
295 "uncompsize": 0 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
296 }, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
297 { |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
298 "chainid": 3, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
299 "chainlen": 1, |
49876
950c39918bd2
tests: drop `(py3 !)` output matching predicates
Matt Harbison <matt_harbison@yahoo.com>
parents:
49662
diff
changeset
|
300 "chainratio": 1.0232558139534884, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
301 "chainsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
302 "compsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
303 "deltatype": "base", |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
304 "extradist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
305 "extraratio": 0.0, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
306 "largestblock": 44, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
307 "lindist": 44, |
49221
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
308 "p1": 1, |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
309 "p2": -1, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
310 "prevrev": -1, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
311 "readdensity": 1.0, |
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
312 "readsize": 44, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
313 "rev": 2, |
40891
e646fda7be2e
test: enable sparse-revlog for test-debugcommands.t
Boris Feld <boris.feld@octobus.net>
parents:
40365
diff
changeset
|
314 "srchunks": 1, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
315 "uncompsize": 43 |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
316 } |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
317 ] |
23547
21446f4d5c62
debugindex: respect --debug flag to show full nodeids
Kyle Lippincott <spectral@google.com>
parents:
23256
diff
changeset
|
318 |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
319 debugdelta chain with sparse read enabled |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
320 |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
321 $ cat >> $HGRCPATH <<EOF |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
322 > [experimental] |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
323 > sparse-read = True |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
324 > EOF |
51073
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
325 $ hg debugdeltachain -m --all-info |
49221
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
326 rev p1 p2 chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
327 0 -1 -1 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
328 1 0 -1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 0 0 1.00000 1 |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
329 2 1 -1 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
330 |
51073
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
331 $ hg debugdeltachain -m --sparse-info -T '{rev} {chainid} {chainlen} {readsize} {largestblock} {readdensity}\n' |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
332 0 1 1 44 44 1.0 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
333 1 2 1 0 0 1 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
334 2 3 1 44 44 1.0 |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
335 |
51073
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
336 $ hg debugdeltachain -m -Tjson --sparse-info |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
337 [ |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
338 { |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
339 "chainid": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
340 "chainlen": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
341 "deltatype": "base", |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
342 "largestblock": 44, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
343 "p1": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
344 "p2": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
345 "prevrev": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
346 "readdensity": 1.0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
347 "readsize": 44, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
348 "rev": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
349 "srchunks": 1 |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
350 }, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
351 { |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
352 "chainid": 2, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
353 "chainlen": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
354 "deltatype": "base", |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
355 "largestblock": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
356 "p1": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
357 "p2": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
358 "prevrev": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
359 "readdensity": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
360 "readsize": 0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
361 "rev": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
362 "srchunks": 1 |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
363 }, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
364 { |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
365 "chainid": 3, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
366 "chainlen": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
367 "deltatype": "base", |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
368 "largestblock": 44, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
369 "p1": 1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
370 "p2": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
371 "prevrev": -1, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
372 "readdensity": 1.0, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
373 "readsize": 44, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
374 "rev": 2, |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
375 "srchunks": 1 |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
376 } |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
377 ] |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
378 |
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
379 $ hg debugdeltachain -m -Tjson --all-info |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
380 [ |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
381 { |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
382 "chainid": 1, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
383 "chainlen": 1, |
49876
950c39918bd2
tests: drop `(py3 !)` output matching predicates
Matt Harbison <matt_harbison@yahoo.com>
parents:
49662
diff
changeset
|
384 "chainratio": 1.0232558139534884, |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
385 "chainsize": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
386 "compsize": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
387 "deltatype": "base", |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
388 "extradist": 0, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
389 "extraratio": 0.0, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
390 "largestblock": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
391 "lindist": 44, |
49221
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
392 "p1": -1, |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
393 "p2": -1, |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
394 "prevrev": -1, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
395 "readdensity": 1.0, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
396 "readsize": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
397 "rev": 0, |
35678
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
398 "srchunks": 1, |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
399 "uncompsize": 43 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
400 }, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
401 { |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
402 "chainid": 2, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
403 "chainlen": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
404 "chainratio": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
405 "chainsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
406 "compsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
407 "deltatype": "base", |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
408 "extradist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
409 "extraratio": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
410 "largestblock": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
411 "lindist": 0, |
49221
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
412 "p1": 0, |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
413 "p2": -1, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
414 "prevrev": -1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
415 "readdensity": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
416 "readsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
417 "rev": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
418 "srchunks": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
419 "uncompsize": 0 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
420 }, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
421 { |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
422 "chainid": 3, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
423 "chainlen": 1, |
49876
950c39918bd2
tests: drop `(py3 !)` output matching predicates
Matt Harbison <matt_harbison@yahoo.com>
parents:
49662
diff
changeset
|
424 "chainratio": 1.0232558139534884, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
425 "chainsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
426 "compsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
427 "deltatype": "base", |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
428 "extradist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
429 "extraratio": 0.0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
430 "largestblock": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
431 "lindist": 44, |
49221
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
432 "p1": 1, |
75d0775dce7f
debugdeltachain: also display p1/p2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48877
diff
changeset
|
433 "p2": -1, |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
434 "prevrev": -1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
435 "readdensity": 1.0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
436 "readsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
437 "rev": 2, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
438 "srchunks": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38444
diff
changeset
|
439 "uncompsize": 43 |
35059
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
440 } |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
441 ] |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
34960
diff
changeset
|
442 |
35678
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
443 $ printf "This test checks things.\n" >> a |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
444 $ hg ci -m a |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
445 $ hg branch other |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
446 marked working directory as branch other |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
447 (branches are permanent and global, did you want a bookmark?) |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
448 $ for i in `$TESTDIR/seq.py 5`; do |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
449 > printf "shorter ${i}" >> a |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
450 > hg ci -m "a other:$i" |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
451 > hg up -q default |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
452 > printf "for the branch default we want longer chains: ${i}" >> a |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
453 > hg ci -m "a default:$i" |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
454 > hg up -q other |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
455 > done |
51073
786b6225793a
debug-delta-chain: print less data by default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50722
diff
changeset
|
456 $ hg debugdeltachain a -T '{rev} {srchunks}\n' --all-info\ |
35678
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
457 > --config experimental.sparse-read.density-threshold=0.50 \ |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
458 > --config experimental.sparse-read.min-gap-size=0 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
459 0 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
460 1 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
461 2 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
462 3 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
463 4 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
464 5 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
465 6 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
466 7 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
467 8 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
468 9 1 |
46874
84a93fa7ecfd
revlog-compression: use zstd by default (if available)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46821
diff
changeset
|
469 10 2 (no-zstd !) |
84a93fa7ecfd
revlog-compression: use zstd by default (if available)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46821
diff
changeset
|
470 10 1 (zstd !) |
35678
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
471 11 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
472 $ hg --config extensions.strip= strip --no-backup -r 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
473 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35395
diff
changeset
|
474 |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
475 Test max chain len |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
476 $ cat >> $HGRCPATH << EOF |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
477 > [format] |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
478 > maxchainlen=4 |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
479 > EOF |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
480 |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
481 $ printf "This test checks if maxchainlen config value is respected also it can serve as basic test for debugrevlog -d <file>.\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
482 $ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
483 $ printf "b\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
484 $ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
485 $ printf "c\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
486 $ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
487 $ printf "d\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
488 $ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
489 $ printf "e\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
490 $ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
491 $ printf "f\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
492 $ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
493 $ printf 'g\n' >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
494 $ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
495 $ printf 'h\n' >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
496 $ hg ci -m a |
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
497 |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
498 $ hg debugrevlog -d a |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
499 # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
500 0 -1 -1 0 ??? 0 0 0 0 ??? ???? ? 1 0 (glob) |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
501 1 0 -1 ??? ??? 0 0 0 0 ??? ???? ? 1 1 (glob) |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
502 2 1 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 2 (glob) |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
503 3 2 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 3 (glob) |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
504 4 3 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 4 (glob) |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
505 5 4 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 0 (glob) |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
506 6 5 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 1 (glob) |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
507 7 6 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 2 (glob) |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
508 8 7 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 3 (glob) |
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
509 #endif |
32265
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31315
diff
changeset
|
510 |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
511 Test debuglocks command: |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
512 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
513 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
514 lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
515 wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
516 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
517 * Test setting the lock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
518 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
519 $ dolock() { |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
520 > { |
51987
f0bee30af890
tests: replace inline `waitlock()` with `wait-on-file` script
Matt Harbison <matt_harbison@yahoo.com>
parents:
51902
diff
changeset
|
521 > "$RUNTESTDIR/testlib/wait-on-file" 5 .hg/unlock |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
522 > rm -f .hg/unlock |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
523 > echo y |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
524 > } | hg debuglocks "$@" > /dev/null |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
525 > } |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
526 $ dolock -s & |
51987
f0bee30af890
tests: replace inline `waitlock()` with `wait-on-file` script
Matt Harbison <matt_harbison@yahoo.com>
parents:
51902
diff
changeset
|
527 $ "$RUNTESTDIR/testlib/wait-on-file" 5 .hg/store/lock |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
528 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
529 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
530 lock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
531 wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
532 [1] |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
533 $ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
534 $ wait |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
535 $ [ -f .hg/store/lock ] || echo "There is no lock" |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
536 There is no lock |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
537 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
538 * Test setting the wlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
539 |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
540 $ dolock -S & |
51987
f0bee30af890
tests: replace inline `waitlock()` with `wait-on-file` script
Matt Harbison <matt_harbison@yahoo.com>
parents:
51902
diff
changeset
|
541 $ "$RUNTESTDIR/testlib/wait-on-file" 5 .hg/wlock |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
542 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
543 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
544 lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
545 wlock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
546 [1] |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
547 $ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
548 $ wait |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
549 $ [ -f .hg/wlock ] || echo "There is no wlock" |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
550 There is no wlock |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
551 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
552 * Test setting both locks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
553 |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
554 $ dolock -Ss & |
51987
f0bee30af890
tests: replace inline `waitlock()` with `wait-on-file` script
Matt Harbison <matt_harbison@yahoo.com>
parents:
51902
diff
changeset
|
555 $ "$RUNTESTDIR/testlib/wait-on-file" 5 .hg/wlock |
f0bee30af890
tests: replace inline `waitlock()` with `wait-on-file` script
Matt Harbison <matt_harbison@yahoo.com>
parents:
51902
diff
changeset
|
556 $ "$RUNTESTDIR/testlib/wait-on-file" 5 .hg/store/lock |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
557 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
558 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
559 lock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
560 wlock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
561 [2] |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
562 |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
563 * Test failing to set a lock |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
564 |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
565 $ hg debuglocks -s |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
566 abort: lock is already held |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
567 [255] |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
568 |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
569 $ hg debuglocks -S |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
570 abort: wlock is already held |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
571 [255] |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
572 |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
573 $ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
574 $ wait |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
575 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
576 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
577 lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
578 wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
579 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
580 * Test forcing the lock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
581 |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
582 $ dolock -s & |
51987
f0bee30af890
tests: replace inline `waitlock()` with `wait-on-file` script
Matt Harbison <matt_harbison@yahoo.com>
parents:
51902
diff
changeset
|
583 $ "$RUNTESTDIR/testlib/wait-on-file" 5 .hg/store/lock |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
584 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
585 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
586 lock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
587 wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
588 [1] |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
589 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
590 $ hg debuglocks -L |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
591 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
592 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
593 lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
594 wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
595 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
596 $ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
597 $ wait |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
598 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
599 * Test forcing the wlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
600 |
35395
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35394
diff
changeset
|
601 $ dolock -S & |
51987
f0bee30af890
tests: replace inline `waitlock()` with `wait-on-file` script
Matt Harbison <matt_harbison@yahoo.com>
parents:
51902
diff
changeset
|
602 $ "$RUNTESTDIR/testlib/wait-on-file" 5 .hg/wlock |
35394
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
603 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
604 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
605 lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
606 wlock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
607 [1] |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
608 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
609 $ hg debuglocks -W |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
610 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
611 $ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
612 lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
613 wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
614 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
615 $ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
616 $ wait |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35259
diff
changeset
|
617 |
32659
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32267
diff
changeset
|
618 Test WdirUnsupported exception |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32267
diff
changeset
|
619 |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32267
diff
changeset
|
620 $ hg debugdata -c ffffffffffffffffffffffffffffffffffffffff |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32267
diff
changeset
|
621 abort: working directory revision cannot be specified |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32267
diff
changeset
|
622 [255] |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32267
diff
changeset
|
623 |
32265
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31315
diff
changeset
|
624 Test cache warming command |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31315
diff
changeset
|
625 |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31315
diff
changeset
|
626 $ rm -rf .hg/cache/ |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31315
diff
changeset
|
627 $ hg debugupdatecaches --debug |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
32265
diff
changeset
|
628 updating the branch cache |
32265
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31315
diff
changeset
|
629 $ ls -r .hg/cache/* |
41934
481259af4bdf
updatecaches: also warm the tags caches
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
630 .hg/cache/tags2-served |
481259af4bdf
updatecaches: also warm the tags caches
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
631 .hg/cache/tags2 |
51902
0f26ee69cf36
rev-branch-cache: increment the version to "v2"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51552
diff
changeset
|
632 .hg/cache/rbc-revs-v2 |
0f26ee69cf36
rev-branch-cache: increment the version to "v2"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51552
diff
changeset
|
633 .hg/cache/rbc-names-v2 |
42238
32338e27bb9d
updatecaches: also warm hgtagsfnodescache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
41965
diff
changeset
|
634 .hg/cache/hgtagsfnodes1 |
32265
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31315
diff
changeset
|
635 .hg/cache/branch2-served |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31315
diff
changeset
|
636 |
51397
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
637 Test debug::unbundle |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
638 |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
639 $ hg bundle --exact --rev tip foo.hg |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
640 1 changesets found |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
641 $ hg debug::unbundle foo.hg |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
642 adding changesets |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
643 adding manifests |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
644 adding file changes |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
645 added 0 changesets with 0 changes to 1 files (no-pure !) |
e2dfa403452d
debug: add a debug::unbundle command that simulate the unbundle from a push
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51229
diff
changeset
|
646 |
37823
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
647 Test debugcolor |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
648 |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
649 #if no-windows |
50722
7e5be4a7cda7
tests: use grep -E instead of obsolescent egrep
Mads Kiilerich <mads@kiilerich.com>
parents:
50378
diff
changeset
|
650 $ hg debugcolor --style --color always | grep -E 'mode|style|log\.' |
38444
a0c3d83d5f04
py3: use stringutil.pprint() to print NoneType
Pulkit Goyal <7895pulkit@gmail.com>
parents:
37823
diff
changeset
|
651 color mode: 'ansi' |
37823
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
652 available style: |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
653 \x1b[0;33mlog.changeset\x1b[0m: \x1b[0;33myellow\x1b[0m (esc) |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
654 #endif |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
655 |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
656 $ hg debugcolor --style --color never |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
657 color mode: None |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
658 available style: |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
659 |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
660 $ cd .. |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
661 |
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
662 Test internal debugstacktrace command |
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
663 |
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
664 $ cat > debugstacktrace.py << EOF |
39901
8a42aa04ef36
py3: byteify extension in test-debugcommands.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39722
diff
changeset
|
665 > from mercurial import ( |
8a42aa04ef36
py3: byteify extension in test-debugcommands.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39722
diff
changeset
|
666 > util, |
8a42aa04ef36
py3: byteify extension in test-debugcommands.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39722
diff
changeset
|
667 > ) |
45055
4c1b4805db57
pycompat: change users of pycompat.{stdin,stdout,stderr} to use procutil.std*
Manuel Jacob <me@manueljacob.de>
parents:
44607
diff
changeset
|
668 > from mercurial.utils import ( |
4c1b4805db57
pycompat: change users of pycompat.{stdin,stdout,stderr} to use procutil.std*
Manuel Jacob <me@manueljacob.de>
parents:
44607
diff
changeset
|
669 > procutil, |
4c1b4805db57
pycompat: change users of pycompat.{stdin,stdout,stderr} to use procutil.std*
Manuel Jacob <me@manueljacob.de>
parents:
44607
diff
changeset
|
670 > ) |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
671 > def f(): |
45055
4c1b4805db57
pycompat: change users of pycompat.{stdin,stdout,stderr} to use procutil.std*
Manuel Jacob <me@manueljacob.de>
parents:
44607
diff
changeset
|
672 > util.debugstacktrace(f=procutil.stdout) |
31313
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30452
diff
changeset
|
673 > g() |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
674 > def g(): |
39901
8a42aa04ef36
py3: byteify extension in test-debugcommands.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39722
diff
changeset
|
675 > util.dst(b'hello from g\\n', skip=1) |
31313
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30452
diff
changeset
|
676 > h() |
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30452
diff
changeset
|
677 > def h(): |
39901
8a42aa04ef36
py3: byteify extension in test-debugcommands.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39722
diff
changeset
|
678 > util.dst(b'hi ...\\nfrom h hidden in g', 1, depth=2) |
31313
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30452
diff
changeset
|
679 > f() |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
680 > EOF |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
39323
diff
changeset
|
681 $ "$PYTHON" debugstacktrace.py |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
682 stacktrace at: |
48877
fcb34c099259
tests: remove __future__ import from test-debugcommands.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
48874
diff
changeset
|
683 *debugstacktrace.py:15 in * (glob) |
fcb34c099259
tests: remove __future__ import from test-debugcommands.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
48874
diff
changeset
|
684 *debugstacktrace.py:8 in f (glob) |
31314
7c877cbf30d6
util: strip trailing newline from debugstacktrace message
Mads Kiilerich <madski@unity3d.com>
parents:
31313
diff
changeset
|
685 hello from g at: |
48877
fcb34c099259
tests: remove __future__ import from test-debugcommands.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
48874
diff
changeset
|
686 *debugstacktrace.py:15 in * (glob) |
fcb34c099259
tests: remove __future__ import from test-debugcommands.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
48874
diff
changeset
|
687 *debugstacktrace.py:9 in f (glob) |
31313
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30452
diff
changeset
|
688 hi ... |
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30452
diff
changeset
|
689 from h hidden in g at: |
48877
fcb34c099259
tests: remove __future__ import from test-debugcommands.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
48874
diff
changeset
|
690 *debugstacktrace.py:9 in f (glob) |
fcb34c099259
tests: remove __future__ import from test-debugcommands.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
48874
diff
changeset
|
691 *debugstacktrace.py:12 in g (glob) |
34959
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
692 |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
693 Test debugcapabilities command: |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
694 |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
695 $ hg debugcapabilities ./debugrevlog/ |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
696 Main capabilities: |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
697 branchmap |
35074
62e10bf001a9
test-pattern: actually update tests using the patterns
Boris Feld <boris.feld@octobus.net>
parents:
35059
diff
changeset
|
698 $USUAL_BUNDLE2_CAPS$ |
34959
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
699 getbundle |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
700 known |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
701 lookup |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
702 pushkey |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33953
diff
changeset
|
703 unbundle |
34960
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
704 Bundle2 capabilities: |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
705 HG20 |
35259
ad5f2b923b0d
push: include a 'check:bookmarks' part when possible
Boris Feld <boris.feld@octobus.net>
parents:
35074
diff
changeset
|
706 bookmarks |
34960
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
707 changegroup |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
708 01 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
709 02 |
50378
2cf264e9aa75
configitems: enable changegroup3 by default (unless using infinitepush)
Matt Harbison <matt_harbison@yahoo.com>
parents:
49944
diff
changeset
|
710 03 |
44412
edc8504bc26b
exchange: turn on option that makes concurrent pushes work better
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
42712
diff
changeset
|
711 checkheads |
edc8504bc26b
exchange: turn on option that makes concurrent pushes work better
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
42712
diff
changeset
|
712 related |
34960
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
713 digests |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
714 md5 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
715 sha1 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
716 sha512 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
717 error |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
718 abort |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
719 unsupportedcontent |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
720 pushraced |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
721 pushkey |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
722 hgtagsfnodes |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
723 listkeys |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
724 phases |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
725 heads |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
726 pushkey |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
727 remote-changegroup |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
728 http |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
34959
diff
changeset
|
729 https |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35678
diff
changeset
|
730 stream |
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35678
diff
changeset
|
731 v2 |
35929
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
732 |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
733 Test debugpeer |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
734 |
47920
9c4204b7f3e4
tests: rely on dummyssh being the default
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
46884
diff
changeset
|
735 $ hg debugpeer ssh://user@dummy/debugrevlog |
35929
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
736 url: ssh://user@dummy/debugrevlog |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
737 local: no |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
738 pushable: yes |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
739 |
48645
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
740 #if rust |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
741 |
47920
9c4204b7f3e4
tests: rely on dummyssh being the default
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
46884
diff
changeset
|
742 $ hg --debug debugpeer ssh://user@dummy/debugrevlog |
47923
c89ddef6474d
tests: normalize the way some debug output it matched
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
47920
diff
changeset
|
743 running .* ".*[/\\]dummyssh" ['"]user@dummy['"] ['"]hg -R debugrevlog serve --stdio['"] (re) |
37813
58bbd14b0c62
sshpeer: reflect actual command activity one handshake
Boris Feld <boris.feld@octobus.net>
parents:
37416
diff
changeset
|
744 devel-peer-request: hello+between |
58bbd14b0c62
sshpeer: reflect actual command activity one handshake
Boris Feld <boris.feld@octobus.net>
parents:
37416
diff
changeset
|
745 devel-peer-request: pairs: 81 bytes |
35929
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
746 sending hello command |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
747 sending between command |
50378
2cf264e9aa75
configitems: enable changegroup3 by default (unless using infinitepush)
Matt Harbison <matt_harbison@yahoo.com>
parents:
49944
diff
changeset
|
748 remote: 473 |
48693
de3ac3d2c60b
stream-clone: allow to change persistent-nodemap format during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48652
diff
changeset
|
749 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlog-compression-zstd,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
35929
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
750 remote: 1 |
37393
afcfdf53e4b5
wireproto: provide accessors for client capabilities
Joerg Sonnenberger <joerg@bec.de>
parents:
37330
diff
changeset
|
751 devel-peer-request: protocaps |
afcfdf53e4b5
wireproto: provide accessors for client capabilities
Joerg Sonnenberger <joerg@bec.de>
parents:
37330
diff
changeset
|
752 devel-peer-request: caps: * bytes (glob) |
afcfdf53e4b5
wireproto: provide accessors for client capabilities
Joerg Sonnenberger <joerg@bec.de>
parents:
37330
diff
changeset
|
753 sending protocaps command |
35929
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
754 url: ssh://user@dummy/debugrevlog |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
755 local: no |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
756 pushable: yes |
48645
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
757 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
758 #endif |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
759 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
760 #if no-rust zstd |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
761 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
762 $ hg --debug debugpeer ssh://user@dummy/debugrevlog |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
763 running .* ".*[/\\]dummyssh" ['"]user@dummy['"] ['"]hg -R debugrevlog serve --stdio['"] (re) |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
764 devel-peer-request: hello+between |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
765 devel-peer-request: pairs: 81 bytes |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
766 sending hello command |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
767 sending between command |
50378
2cf264e9aa75
configitems: enable changegroup3 by default (unless using infinitepush)
Matt Harbison <matt_harbison@yahoo.com>
parents:
49944
diff
changeset
|
768 remote: 473 |
48652
6fd9a17c32ab
requirements: add an official `REVLOG_COMPRESSION_ZSTD` const
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48645
diff
changeset
|
769 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlog-compression-zstd,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
48645
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
770 remote: 1 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
771 devel-peer-request: protocaps |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
772 devel-peer-request: caps: * bytes (glob) |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
773 sending protocaps command |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
774 url: ssh://user@dummy/debugrevlog |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
775 local: no |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
776 pushable: yes |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
777 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
778 #endif |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
779 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
780 #if no-rust no-zstd |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
781 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
782 $ hg --debug debugpeer ssh://user@dummy/debugrevlog |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
783 running .* ".*[/\\]dummyssh" ['"]user@dummy['"] ['"]hg -R debugrevlog serve --stdio['"] (re) |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
784 devel-peer-request: hello+between |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
785 devel-peer-request: pairs: 81 bytes |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
786 sending hello command |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
787 sending between command |
50378
2cf264e9aa75
configitems: enable changegroup3 by default (unless using infinitepush)
Matt Harbison <matt_harbison@yahoo.com>
parents:
49944
diff
changeset
|
788 remote: 449 |
48645
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
789 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
790 remote: 1 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
791 devel-peer-request: protocaps |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
792 devel-peer-request: caps: * bytes (glob) |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
793 sending protocaps command |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
794 url: ssh://user@dummy/debugrevlog |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
795 local: no |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
796 pushable: yes |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
797 |
ff0233f36f6a
test-bundle: split some variant in there own section
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47923
diff
changeset
|
798 #endif |
49944
8f76a41ee465
debugshell: allow commands to be specified as a CLI argument
Arun Kulshreshtha <akulshreshtha@janestreet.com>
parents:
49876
diff
changeset
|
799 |
8f76a41ee465
debugshell: allow commands to be specified as a CLI argument
Arun Kulshreshtha <akulshreshtha@janestreet.com>
parents:
49876
diff
changeset
|
800 Test debugshell |
8f76a41ee465
debugshell: allow commands to be specified as a CLI argument
Arun Kulshreshtha <akulshreshtha@janestreet.com>
parents:
49876
diff
changeset
|
801 |
8f76a41ee465
debugshell: allow commands to be specified as a CLI argument
Arun Kulshreshtha <akulshreshtha@janestreet.com>
parents:
49876
diff
changeset
|
802 $ hg debugshell -c 'ui.write(b"%s\n" % ui.username())' |
8f76a41ee465
debugshell: allow commands to be specified as a CLI argument
Arun Kulshreshtha <akulshreshtha@janestreet.com>
parents:
49876
diff
changeset
|
803 test |