author | Martijn Pieters <mj@zopatista.com> |
Tue, 31 Jul 2018 19:37:54 +0200 | |
changeset 38821 | 0a57945aaf7f |
parent 38647 | 0f4c2c70e26e |
child 39118 | 195ed920653e |
permissions | -rw-r--r-- |
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 |
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
2 |
> [ui] |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
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:
38449
diff
changeset
|
11 |
$ hg rm . |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
12 |
removing a |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
13 |
$ hg ci -Am make-it-empty |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
14 |
$ hg revert --all -r 0 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
15 |
adding a |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
16 |
$ hg ci -Am make-it-full |
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
17 |
#if reporevlogstore |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
18 |
$ hg debugrevlog -m |
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
19 |
format : 1 |
26918
0438df737fb7
test: enable generaldelta in 'test-debugcommand.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24503
diff
changeset
|
20 |
flags : inline, generaldelta |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
21 |
|
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
22 |
revisions : 3 |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
23 |
merges : 0 ( 0.00%) |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
24 |
normal : 3 (100.00%) |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
25 |
revisions : 3 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
26 |
full : 3 (100.00%) |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
27 |
deltas : 0 ( 0.00%) |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
28 |
revision size : 88 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
29 |
full : 88 (100.00%) |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
30 |
deltas : 0 ( 0.00%) |
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
31 |
|
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
32 |
chunks : 3 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
33 |
empty : 1 (33.33%) |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
34 |
0x75 (u) : 2 (66.67%) |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
35 |
chunks size : 88 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
36 |
empty : 0 ( 0.00%) |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
37 |
0x75 (u) : 88 (100.00%) |
30461
932b18c95e11
commands: print chunk type in debugrevlog
Gregory Szorc <gregory.szorc@gmail.com>
parents:
27263
diff
changeset
|
38 |
|
33074
e21b750c9b9e
debugrevlog: align chain length, reach, and compression ratio
Yuya Nishihara <yuya@tcha.org>
parents:
33069
diff
changeset
|
39 |
avg chain length : 0 |
e21b750c9b9e
debugrevlog: align chain length, reach, and compression ratio
Yuya Nishihara <yuya@tcha.org>
parents:
33069
diff
changeset
|
40 |
max chain length : 0 |
e21b750c9b9e
debugrevlog: align chain length, reach, and compression ratio
Yuya Nishihara <yuya@tcha.org>
parents:
33069
diff
changeset
|
41 |
max chain reach : 44 |
e21b750c9b9e
debugrevlog: align chain length, reach, and compression ratio
Yuya Nishihara <yuya@tcha.org>
parents:
33069
diff
changeset
|
42 |
compression ratio : 0 |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
43 |
|
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
44 |
uncompressed data size (min/max/avg) : 0 / 43 / 28 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
45 |
full revision size (min/max/avg) : 0 / 44 / 29 |
17188
76e55914c303
debugrevlog: handle numrevs == numfull case (issue3537)
Patrick Mezard <patrick@mezard.eu>
parents:
diff
changeset
|
46 |
delta size (min/max/avg) : 0 / 0 / 0 |
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
47 |
#endif |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
48 |
|
37285
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
49 |
Test debugindex, with and without the --verbose/--debug flag |
23547
21446f4d5c62
debugindex: respect --debug flag to show full nodeids
Kyle Lippincott <spectral@google.com>
parents:
23256
diff
changeset
|
50 |
$ hg debugindex a |
37285
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
51 |
rev linkrev nodeid p1 p2 |
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
52 |
0 0 b789fdd96dc2 000000000000 000000000000 |
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
53 |
|
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
54 |
#if no-reposimplestore |
37285
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
55 |
$ hg --verbose debugindex a |
37284
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37056
diff
changeset
|
56 |
rev offset length linkrev nodeid p1 p2 |
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37056
diff
changeset
|
57 |
0 0 3 0 b789fdd96dc2 000000000000 000000000000 |
37285
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
58 |
|
23547
21446f4d5c62
debugindex: respect --debug flag to show full nodeids
Kyle Lippincott <spectral@google.com>
parents:
23256
diff
changeset
|
59 |
$ hg --debug debugindex a |
37284
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37056
diff
changeset
|
60 |
rev offset length linkrev nodeid p1 p2 |
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37056
diff
changeset
|
61 |
0 0 3 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 |
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
62 |
#endif |
37285
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
63 |
|
23547
21446f4d5c62
debugindex: respect --debug flag to show full nodeids
Kyle Lippincott <spectral@google.com>
parents:
23256
diff
changeset
|
64 |
$ hg debugindex -f 1 a |
37285
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
65 |
rev flag size link p1 p2 nodeid |
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
66 |
0 0000 2 0 -1 -1 b789fdd96dc2 |
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
67 |
|
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
68 |
#if no-reposimplestore |
37285
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
69 |
$ hg --verbose debugindex -f 1 a |
37284
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37056
diff
changeset
|
70 |
rev flag offset length size link p1 p2 nodeid |
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37056
diff
changeset
|
71 |
0 0000 0 3 2 0 -1 -1 b789fdd96dc2 |
37285
d4e62df1c73d
debugcommands: drop offset and length from debugindex by default
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37284
diff
changeset
|
72 |
|
23547
21446f4d5c62
debugindex: respect --debug flag to show full nodeids
Kyle Lippincott <spectral@google.com>
parents:
23256
diff
changeset
|
73 |
$ hg --debug debugindex -f 1 a |
37284
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37056
diff
changeset
|
74 |
rev flag offset length size link p1 p2 nodeid |
009d0283de5f
debugcommands: drop base revision from debugindex
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37056
diff
changeset
|
75 |
0 0000 0 3 2 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 |
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
76 |
#endif |
23547
21446f4d5c62
debugindex: respect --debug flag to show full nodeids
Kyle Lippincott <spectral@google.com>
parents:
23256
diff
changeset
|
77 |
|
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
78 |
debugdelta chain basic output |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
79 |
|
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
80 |
#if reporevlogstore |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
81 |
$ hg debugdeltachain -m |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
82 |
rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
83 |
0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
84 |
1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
85 |
2 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
86 |
|
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
87 |
$ hg debugdeltachain -m -T '{rev} {chainid} {chainlen}\n' |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
88 |
0 1 1 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
89 |
1 2 1 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
90 |
2 3 1 |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
91 |
|
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
92 |
$ hg debugdeltachain -m -Tjson |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
93 |
[ |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
94 |
{ |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
95 |
"chainid": 1, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
96 |
"chainlen": 1, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
97 |
"chainratio": 1.02325581395, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
98 |
"chainsize": 44, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
99 |
"compsize": 44, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
100 |
"deltatype": "base", |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
101 |
"extradist": 0, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
102 |
"extraratio": 0.0, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
103 |
"lindist": 44, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
104 |
"prevrev": -1, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
105 |
"rev": 0, |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
106 |
"uncompsize": 43 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
107 |
}, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
108 |
{ |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
109 |
"chainid": 2, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
110 |
"chainlen": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
111 |
"chainratio": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
112 |
"chainsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
113 |
"compsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
114 |
"deltatype": "base", |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
115 |
"extradist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
116 |
"extraratio": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
117 |
"lindist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
118 |
"prevrev": -1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
119 |
"rev": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
120 |
"uncompsize": 0 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
121 |
}, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
122 |
{ |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
123 |
"chainid": 3, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
124 |
"chainlen": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
125 |
"chainratio": 1.02325581395, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
126 |
"chainsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
127 |
"compsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
128 |
"deltatype": "base", |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
129 |
"extradist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
130 |
"extraratio": 0.0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
131 |
"lindist": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
132 |
"prevrev": -1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
133 |
"rev": 2, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
134 |
"uncompsize": 43 |
27263
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
135 |
} |
4efb36ecaaec
commands: add debugdeltachain command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26918
diff
changeset
|
136 |
] |
23547
21446f4d5c62
debugindex: respect --debug flag to show full nodeids
Kyle Lippincott <spectral@google.com>
parents:
23256
diff
changeset
|
137 |
|
35082
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
138 |
debugdelta chain with sparse read enabled |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
139 |
|
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
140 |
$ cat >> $HGRCPATH <<EOF |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
141 |
> [experimental] |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
142 |
> sparse-read = True |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
143 |
> EOF |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
144 |
$ hg debugdeltachain -m |
35678
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
145 |
rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
146 |
0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
147 |
1 2 1 -1 base 0 0 0 0.00000 0 0 0.00000 0 0 1.00000 1 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
148 |
2 3 1 -1 base 44 43 44 1.02326 44 0 0.00000 44 44 1.00000 1 |
35082
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
149 |
|
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
150 |
$ hg debugdeltachain -m -T '{rev} {chainid} {chainlen} {readsize} {largestblock} {readdensity}\n' |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
151 |
0 1 1 44 44 1.0 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
152 |
1 2 1 0 0 1 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
153 |
2 3 1 44 44 1.0 |
35082
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
154 |
|
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
155 |
$ hg debugdeltachain -m -Tjson |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
156 |
[ |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
157 |
{ |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
158 |
"chainid": 1, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
159 |
"chainlen": 1, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
160 |
"chainratio": 1.02325581395, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
161 |
"chainsize": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
162 |
"compsize": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
163 |
"deltatype": "base", |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
164 |
"extradist": 0, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
165 |
"extraratio": 0.0, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
166 |
"largestblock": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
167 |
"lindist": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
168 |
"prevrev": -1, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
169 |
"readdensity": 1.0, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
170 |
"readsize": 44, |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
171 |
"rev": 0, |
35678
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
172 |
"srchunks": 1, |
35082
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
173 |
"uncompsize": 43 |
38647
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
174 |
}, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
175 |
{ |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
176 |
"chainid": 2, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
177 |
"chainlen": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
178 |
"chainratio": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
179 |
"chainsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
180 |
"compsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
181 |
"deltatype": "base", |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
182 |
"extradist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
183 |
"extraratio": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
184 |
"largestblock": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
185 |
"lindist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
186 |
"prevrev": -1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
187 |
"readdensity": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
188 |
"readsize": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
189 |
"rev": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
190 |
"srchunks": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
191 |
"uncompsize": 0 |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
192 |
}, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
193 |
{ |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
194 |
"chainid": 3, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
195 |
"chainlen": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
196 |
"chainratio": 1.02325581395, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
197 |
"chainsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
198 |
"compsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
199 |
"deltatype": "base", |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
200 |
"extradist": 0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
201 |
"extraratio": 0.0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
202 |
"largestblock": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
203 |
"lindist": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
204 |
"prevrev": -1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
205 |
"readdensity": 1.0, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
206 |
"readsize": 44, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
207 |
"rev": 2, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
208 |
"srchunks": 1, |
0f4c2c70e26e
debugdeltachain: protect against 0 readsize
Boris Feld <boris.feld@octobus.net>
parents:
38449
diff
changeset
|
209 |
"uncompsize": 43 |
35082
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
210 |
} |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
211 |
] |
5cbbef8d2a57
debugdeltachain: output information about sparse read if enabled
Paul Morelle <paul.morelle@octobus.net>
parents:
35016
diff
changeset
|
212 |
|
35678
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
213 |
$ 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:
35402
diff
changeset
|
214 |
$ hg ci -m a |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
215 |
$ hg branch other |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
216 |
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:
35402
diff
changeset
|
217 |
(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:
35402
diff
changeset
|
218 |
$ 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:
35402
diff
changeset
|
219 |
> printf "shorter ${i}" >> a |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
220 |
> 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:
35402
diff
changeset
|
221 |
> hg up -q default |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
222 |
> 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:
35402
diff
changeset
|
223 |
> 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:
35402
diff
changeset
|
224 |
> hg up -q other |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
225 |
> done |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
226 |
$ hg debugdeltachain a -T '{rev} {srchunks}\n' \ |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
227 |
> --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:
35402
diff
changeset
|
228 |
> --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:
35402
diff
changeset
|
229 |
0 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
230 |
1 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
231 |
2 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
232 |
3 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
233 |
4 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
234 |
5 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
235 |
6 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
236 |
7 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
237 |
8 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
238 |
9 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
239 |
10 2 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
240 |
11 1 |
43154a76f392
debugdeltachain: display how many chunks would be read in sparse-read mode
Paul Morelle <paul.morelle@octobus.net>
parents:
35402
diff
changeset
|
241 |
$ 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:
35402
diff
changeset
|
242 |
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:
35402
diff
changeset
|
243 |
|
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
244 |
Test max chain len |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
245 |
$ cat >> $HGRCPATH << EOF |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
246 |
> [format] |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
247 |
> maxchainlen=4 |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
248 |
> EOF |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
249 |
|
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
250 |
$ 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
|
251 |
$ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
252 |
$ printf "b\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
253 |
$ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
254 |
$ printf "c\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
255 |
$ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
256 |
$ printf "d\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
257 |
$ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
258 |
$ printf "e\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
259 |
$ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
260 |
$ printf "f\n" >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
261 |
$ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
262 |
$ printf 'g\n' >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
263 |
$ hg ci -m a |
23256
1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
Augie Fackler <raf@durin42.com>
parents:
23255
diff
changeset
|
264 |
$ printf 'h\n' >> a |
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
265 |
$ hg ci -m a |
37416
7542e97c7867
tests: conditionalize tests for various repo features
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37413
diff
changeset
|
266 |
|
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
267 |
$ hg debugrevlog -d a |
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
268 |
# 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
|
269 |
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
|
270 |
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
|
271 |
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
|
272 |
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
|
273 |
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
|
274 |
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
|
275 |
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
|
276 |
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
|
277 |
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
|
278 |
#endif |
32305
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
279 |
|
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
280 |
Test debuglocks command: |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
281 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
282 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
283 |
lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
284 |
wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
285 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
286 |
* Test setting the lock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
287 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
288 |
waitlock <file> will wait for file to be created. If it isn't in a reasonable |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
289 |
amount of time, displays error message and returns 1 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
290 |
$ waitlock() { |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
291 |
> start=`date +%s` |
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
292 |
> timeout=5 |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
293 |
> while [ \( ! -f $1 \) -a \( ! -L $1 \) ]; do |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
294 |
> now=`date +%s` |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
295 |
> if [ "`expr $now - $start`" -gt $timeout ]; then |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
296 |
> echo "timeout: $1 was not created in $timeout seconds" |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
297 |
> return 1 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
298 |
> fi |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
299 |
> sleep 0.1 |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
300 |
> done |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
301 |
> } |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
302 |
$ dolock() { |
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
303 |
> { |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
304 |
> waitlock .hg/unlock |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
305 |
> rm -f .hg/unlock |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
306 |
> echo y |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
307 |
> } | hg debuglocks "$@" > /dev/null |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
308 |
> } |
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
309 |
$ dolock -s & |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
310 |
$ waitlock .hg/store/lock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
311 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
312 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
313 |
lock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
314 |
wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
315 |
[1] |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
316 |
$ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
317 |
$ wait |
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
318 |
$ [ -f .hg/store/lock ] || echo "There is no lock" |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
319 |
There is no lock |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
320 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
321 |
* Test setting the wlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
322 |
|
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
323 |
$ dolock -S & |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
324 |
$ waitlock .hg/wlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
325 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
326 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
327 |
lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
328 |
wlock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
329 |
[1] |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
330 |
$ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
331 |
$ wait |
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
332 |
$ [ -f .hg/wlock ] || echo "There is no wlock" |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
333 |
There is no wlock |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
334 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
335 |
* Test setting both locks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
336 |
|
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
337 |
$ dolock -Ss & |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
338 |
$ waitlock .hg/wlock && waitlock .hg/store/lock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
339 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
340 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
341 |
lock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
342 |
wlock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
343 |
[2] |
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
344 |
|
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
345 |
* Test failing to set a lock |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
346 |
|
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
347 |
$ hg debuglocks -s |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
348 |
abort: lock is already held |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
349 |
[255] |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
350 |
|
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
351 |
$ hg debuglocks -S |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
352 |
abort: wlock is already held |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
353 |
[255] |
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
354 |
|
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
355 |
$ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
356 |
$ wait |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
357 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
358 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
359 |
lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
360 |
wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
361 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
362 |
* Test forcing the lock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
363 |
|
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
364 |
$ dolock -s & |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
365 |
$ waitlock .hg/store/lock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
366 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
367 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
368 |
lock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
369 |
wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
370 |
[1] |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
371 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
372 |
$ hg debuglocks -L |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
373 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
374 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
375 |
lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
376 |
wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
377 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
378 |
$ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
379 |
$ wait |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
380 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
381 |
* Test forcing the wlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
382 |
|
35402
12055fb3ba30
debuglocks: allow setting a lock
Paul Morelle <paul.morelle@octobus.net>
parents:
35401
diff
changeset
|
383 |
$ dolock -S & |
35401
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
384 |
$ waitlock .hg/wlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
385 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
386 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
387 |
lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
388 |
wlock: user *, process * (*s) (glob) |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
389 |
[1] |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
390 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
391 |
$ hg debuglocks -W |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
392 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
393 |
$ hg debuglocks |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
394 |
lock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
395 |
wlock: free |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
396 |
|
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
397 |
$ touch .hg/unlock |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
398 |
$ wait |
a43b2dd95e4f
debuglocks: add tests (and fix typo in early return)
Paul Morelle <paul.morelle@octobus.net>
parents:
35268
diff
changeset
|
399 |
|
32679
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32307
diff
changeset
|
400 |
Test WdirUnsupported exception |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32307
diff
changeset
|
401 |
|
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32307
diff
changeset
|
402 |
$ hg debugdata -c ffffffffffffffffffffffffffffffffffffffff |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32307
diff
changeset
|
403 |
abort: working directory revision cannot be specified |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32307
diff
changeset
|
404 |
[255] |
7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
Yuya Nishihara <yuya@tcha.org>
parents:
32307
diff
changeset
|
405 |
|
32305
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
406 |
Test cache warming command |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
407 |
|
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
408 |
$ rm -rf .hg/cache/ |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
409 |
$ hg debugupdatecaches --debug |
32307
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
32305
diff
changeset
|
410 |
updating the branch cache |
32305
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
411 |
$ ls -r .hg/cache/* |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
412 |
.hg/cache/rbc-revs-v1 |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
413 |
.hg/cache/rbc-names-v1 |
38821
0a57945aaf7f
manifest: persist the manifestfulltext cache
Martijn Pieters <mj@zopatista.com>
parents:
38647
diff
changeset
|
414 |
.hg/cache/manifestfulltextcache |
32305
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
415 |
.hg/cache/branch2-served |
ccef71de7d41
caches: introduce a 'debugupdatecaches' command
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
31324
diff
changeset
|
416 |
|
37823
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
417 |
Test debugcolor |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
418 |
|
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
419 |
#if no-windows |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
420 |
$ hg debugcolor --style --color always | egrep 'mode|style|log\.' |
38449
a0c3d83d5f04
py3: use stringutil.pprint() to print NoneType
Pulkit Goyal <7895pulkit@gmail.com>
parents:
37823
diff
changeset
|
421 |
color mode: 'ansi' |
37823
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
422 |
available style: |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
423 |
\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
|
424 |
#endif |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
425 |
|
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
426 |
$ hg debugcolor --style --color never |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
427 |
color mode: None |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
428 |
available style: |
0e9ddab2bac2
debugcolor: fix crash by empty styles (issue5856)
Yuya Nishihara <yuya@tcha.org>
parents:
37813
diff
changeset
|
429 |
|
23255
76effa770ff9
revlog: add config variable for limiting delta-chain length
Mateusz Kwapich <mitrandir@fb.com>
parents:
20543
diff
changeset
|
430 |
$ cd .. |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
431 |
|
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
432 |
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
|
433 |
|
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
434 |
$ cat > debugstacktrace.py << EOF |
33971
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
435 |
> from __future__ import absolute_import |
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
436 |
> import sys |
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
437 |
> from mercurial import util |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
438 |
> def f(): |
33971
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
439 |
> util.debugstacktrace(f=sys.stdout) |
31322
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30461
diff
changeset
|
440 |
> g() |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
441 |
> def g(): |
33971
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
442 |
> util.dst('hello from g\\n', skip=1) |
31322
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30461
diff
changeset
|
443 |
> h() |
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30461
diff
changeset
|
444 |
> def h(): |
33971
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
445 |
> util.dst('hi ...\\nfrom h hidden in g', 1, depth=2) |
31322
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30461
diff
changeset
|
446 |
> f() |
20244
47d0843647d1
util: introduce util.debugstacktrace for showing a stack trace without crashing
Mads Kiilerich <madski@unity3d.com>
parents:
17188
diff
changeset
|
447 |
> EOF |
32958
75be14993fda
cleanup: use $PYTHON to run python in many more tests
Augie Fackler <augie@google.com>
parents:
32679
diff
changeset
|
448 |
$ $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
|
449 |
stacktrace at: |
33971
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
450 |
debugstacktrace.py:12 in * (glob) |
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
451 |
debugstacktrace.py:5 in f |
31323
7c877cbf30d6
util: strip trailing newline from debugstacktrace message
Mads Kiilerich <madski@unity3d.com>
parents:
31322
diff
changeset
|
452 |
hello from g at: |
33971
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
453 |
debugstacktrace.py:12 in * (glob) |
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
454 |
debugstacktrace.py:6 in f |
31322
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30461
diff
changeset
|
455 |
hi ... |
80752c655320
tests: rework util.debugstacktrace tests
Mads Kiilerich <madski@unity3d.com>
parents:
30461
diff
changeset
|
456 |
from h hidden in g at: |
33971
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
457 |
debugstacktrace.py:6 in f |
90981271a904
tests: update test-debugcommands to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33074
diff
changeset
|
458 |
debugstacktrace.py:9 in g |
35015
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
459 |
|
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
460 |
Test debugcapabilities command: |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
461 |
|
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
462 |
$ hg debugcapabilities ./debugrevlog/ |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
463 |
Main capabilities: |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
464 |
branchmap |
35097
62e10bf001a9
test-pattern: actually update tests using the patterns
Boris Feld <boris.feld@octobus.net>
parents:
35082
diff
changeset
|
465 |
$USUAL_BUNDLE2_CAPS$ |
35015
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
466 |
getbundle |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
467 |
known |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
468 |
lookup |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
469 |
pushkey |
7ee2d859f720
debug: add a debugcapabilities commands
Boris Feld <boris.feld@octobus.net>
parents:
33971
diff
changeset
|
470 |
unbundle |
35016
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
471 |
Bundle2 capabilities: |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
472 |
HG20 |
35268
ad5f2b923b0d
push: include a 'check:bookmarks' part when possible
Boris Feld <boris.feld@octobus.net>
parents:
35097
diff
changeset
|
473 |
bookmarks |
35016
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
474 |
changegroup |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
475 |
01 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
476 |
02 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
477 |
digests |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
478 |
md5 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
479 |
sha1 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
480 |
sha512 |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
481 |
error |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
482 |
abort |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
483 |
unsupportedcontent |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
484 |
pushraced |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
485 |
pushkey |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
486 |
hgtagsfnodes |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
487 |
listkeys |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
488 |
phases |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
489 |
heads |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
490 |
pushkey |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
491 |
remote-changegroup |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
492 |
http |
762ea8a1f5e7
debug: print parsed bundle2 capabilities with debugcapabilities
Boris Feld <boris.feld@octobus.net>
parents:
35015
diff
changeset
|
493 |
https |
36974
2090044a288d
revbranchcache: advertise and use 'rbc' exchange capability
Boris Feld <boris.feld@octobus.net>
parents:
36641
diff
changeset
|
494 |
rev-branch-cache |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35678
diff
changeset
|
495 |
stream |
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35678
diff
changeset
|
496 |
v2 |
35969
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
497 |
|
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
498 |
Test debugpeer |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
499 |
|
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
500 |
$ hg --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" debugpeer ssh://user@dummy/debugrevlog |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
501 |
url: ssh://user@dummy/debugrevlog |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
502 |
local: no |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
503 |
pushable: yes |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
504 |
|
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
505 |
$ hg --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" --debug debugpeer ssh://user@dummy/debugrevlog |
36028
c64b9adfb371
tests: stabilize ssh tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35969
diff
changeset
|
506 |
running "*" "*/tests/dummyssh" 'user@dummy' 'hg -R debugrevlog serve --stdio' (glob) (no-windows !) |
c64b9adfb371
tests: stabilize ssh tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35969
diff
changeset
|
507 |
running "*" "*\tests/dummyssh" "user@dummy" "hg -R debugrevlog serve --stdio" (glob) (windows !) |
37813
58bbd14b0c62
sshpeer: reflect actual command activity one handshake
Boris Feld <boris.feld@octobus.net>
parents:
37416
diff
changeset
|
508 |
devel-peer-request: hello+between |
58bbd14b0c62
sshpeer: reflect actual command activity one handshake
Boris Feld <boris.feld@octobus.net>
parents:
37416
diff
changeset
|
509 |
devel-peer-request: pairs: 81 bytes |
35969
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
510 |
sending hello command |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
511 |
sending between command |
37393
afcfdf53e4b5
wireproto: provide accessors for client capabilities
Joerg Sonnenberger <joerg@bec.de>
parents:
37330
diff
changeset
|
512 |
remote: 413 |
37413
33af46d639b4
wireproto: send server capabilities in canonical order
Joerg Sonnenberger <joerg@bec.de>
parents:
37393
diff
changeset
|
513 |
remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
35969
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
514 |
remote: 1 |
37393
afcfdf53e4b5
wireproto: provide accessors for client capabilities
Joerg Sonnenberger <joerg@bec.de>
parents:
37330
diff
changeset
|
515 |
devel-peer-request: protocaps |
afcfdf53e4b5
wireproto: provide accessors for client capabilities
Joerg Sonnenberger <joerg@bec.de>
parents:
37330
diff
changeset
|
516 |
devel-peer-request: caps: * bytes (glob) |
afcfdf53e4b5
wireproto: provide accessors for client capabilities
Joerg Sonnenberger <joerg@bec.de>
parents:
37330
diff
changeset
|
517 |
sending protocaps command |
35969
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
518 |
url: ssh://user@dummy/debugrevlog |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
519 |
local: no |
5f029d03cf71
debugcommands: introduce debugpeer command
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35792
diff
changeset
|
520 |
pushable: yes |