Mercurial > hg
annotate tests/test-clone-uncompressed.t @ 47859:155a2ec8a9dc
merge with stable
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 22 Aug 2021 16:32:06 -0400 |
parents | 17211649bac2 |
children | 5c17df88f97f |
rev | line source |
---|---|
38021
538e850ae737
tests: mark tests that fail when using chg as #require no-chg
Kyle Lippincott <spectral@google.com>
parents:
37667
diff
changeset
|
1 #require serve no-reposimplestore no-chg |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2 |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
3 #testcases stream-legacy stream-bundle2 |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
4 |
39722
4bd6e444c76f
bundle2: make server.bundle2.stream default to True
Anton Shestakov <av6@dwimlabs.net>
parents:
39721
diff
changeset
|
5 #if stream-legacy |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
6 $ cat << EOF >> $HGRCPATH |
39721
1b5880352314
bundle2: graduate bundle2.stream option from experimental to server section
Anton Shestakov <av6@dwimlabs.net>
parents:
39301
diff
changeset
|
7 > [server] |
39722
4bd6e444c76f
bundle2: make server.bundle2.stream default to True
Anton Shestakov <av6@dwimlabs.net>
parents:
39721
diff
changeset
|
8 > bundle2.stream = no |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
9 > EOF |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
10 #endif |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
11 |
28389
9ab45fbe045e
bdiff: (pure) support array.array arrays (issue5130)
timeless <timeless@mozdev.org>
parents:
27897
diff
changeset
|
12 Initialize repository |
9ab45fbe045e
bdiff: (pure) support array.array arrays (issue5130)
timeless <timeless@mozdev.org>
parents:
27897
diff
changeset
|
13 the status call is to check for issue5130 |
9ab45fbe045e
bdiff: (pure) support array.array arrays (issue5130)
timeless <timeless@mozdev.org>
parents:
27897
diff
changeset
|
14 |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
15 $ hg init server |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
16 $ cd server |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
17 $ touch foo |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
18 $ hg -q commit -A -m initial |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
19 >>> for i in range(1024): |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
20 ... with open(str(i), 'wb') as fh: |
37667
701c261fba83
py3: use b"%d" instead of str() to convert int to bytes
Pulkit Goyal <7895pulkit@gmail.com>
parents:
37349
diff
changeset
|
21 ... fh.write(b"%d" % i) and None |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
22 $ hg -q commit -A -m 'add a lot of files' |
28389
9ab45fbe045e
bdiff: (pure) support array.array arrays (issue5130)
timeless <timeless@mozdev.org>
parents:
27897
diff
changeset
|
23 $ hg st |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
24 |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
25 add files with "tricky" name: |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
26 |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
27 $ echo foo > 00changelog.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
28 $ echo foo > 00changelog.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
29 $ echo foo > 00changelog.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
30 $ echo foo > 00changelog-ab349180a0405010.nd |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
31 $ echo foo > 00manifest.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
32 $ echo foo > 00manifest.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
33 $ echo foo > foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
34 $ echo foo > foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
35 $ echo foo > foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
36 $ echo foo > undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
37 $ echo foo > undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
38 $ echo foo > undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
39 $ echo foo > undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
40 $ echo foo > undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
41 $ echo foo > undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
42 $ echo foo > undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
43 $ echo foo > undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
44 $ mkdir savanah |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
45 $ echo foo > savanah/foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
46 $ echo foo > savanah/foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
47 $ echo foo > savanah/foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
48 $ echo foo > savanah/undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
49 $ echo foo > savanah/undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
50 $ echo foo > savanah/undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
51 $ echo foo > savanah/undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
52 $ echo foo > savanah/undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
53 $ echo foo > savanah/undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
54 $ echo foo > savanah/undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
55 $ echo foo > savanah/undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
56 $ mkdir data |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
57 $ echo foo > data/foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
58 $ echo foo > data/foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
59 $ echo foo > data/foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
60 $ echo foo > data/undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
61 $ echo foo > data/undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
62 $ echo foo > data/undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
63 $ echo foo > data/undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
64 $ echo foo > data/undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
65 $ echo foo > data/undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
66 $ echo foo > data/undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
67 $ echo foo > data/undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
68 $ mkdir meta |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
69 $ echo foo > meta/foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
70 $ echo foo > meta/foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
71 $ echo foo > meta/foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
72 $ echo foo > meta/undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
73 $ echo foo > meta/undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
74 $ echo foo > meta/undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
75 $ echo foo > meta/undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
76 $ echo foo > meta/undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
77 $ echo foo > meta/undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
78 $ echo foo > meta/undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
79 $ echo foo > meta/undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
80 $ mkdir store |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
81 $ echo foo > store/foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
82 $ echo foo > store/foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
83 $ echo foo > store/foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
84 $ echo foo > store/undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
85 $ echo foo > store/undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
86 $ echo foo > store/undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
87 $ echo foo > store/undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
88 $ echo foo > store/undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
89 $ echo foo > store/undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
90 $ echo foo > store/undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
91 $ echo foo > store/undo.babar |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
92 |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
93 Name with special characters |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
94 |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
95 $ echo foo > store/CélesteVille_is_a_Capital_City |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
96 |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
97 All all that |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
98 |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
99 $ hg add . |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
100 adding 00changelog-ab349180a0405010.nd |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
101 adding 00changelog.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
102 adding 00changelog.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
103 adding 00changelog.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
104 adding 00manifest.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
105 adding 00manifest.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
106 adding data/foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
107 adding data/foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
108 adding data/foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
109 adding data/undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
110 adding data/undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
111 adding data/undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
112 adding data/undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
113 adding data/undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
114 adding data/undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
115 adding data/undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
116 adding data/undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
117 adding foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
118 adding foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
119 adding foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
120 adding meta/foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
121 adding meta/foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
122 adding meta/foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
123 adding meta/undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
124 adding meta/undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
125 adding meta/undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
126 adding meta/undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
127 adding meta/undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
128 adding meta/undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
129 adding meta/undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
130 adding meta/undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
131 adding savanah/foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
132 adding savanah/foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
133 adding savanah/foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
134 adding savanah/undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
135 adding savanah/undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
136 adding savanah/undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
137 adding savanah/undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
138 adding savanah/undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
139 adding savanah/undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
140 adding savanah/undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
141 adding savanah/undo.py |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
142 adding store/C\xc3\xa9lesteVille_is_a_Capital_City (esc) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
143 adding store/foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
144 adding store/foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
145 adding store/foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
146 adding store/undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
147 adding store/undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
148 adding store/undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
149 adding store/undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
150 adding store/undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
151 adding store/undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
152 adding store/undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
153 adding store/undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
154 adding undo.babar |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
155 adding undo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
156 adding undo.foo.d |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
157 adding undo.foo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
158 adding undo.foo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
159 adding undo.i |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
160 adding undo.n |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
161 adding undo.py |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
162 $ hg ci -m 'add files with "tricky" name' |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
163 $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
164 $ cat hg.pid > $DAEMON_PIDS |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
165 $ cd .. |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
166 |
47783
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
167 Check local clone |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
168 ================== |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
169 |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
170 The logic is close enough of uncompressed. |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
171 This is present here to reuse the testing around file with "special" names. |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
172 |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
173 $ hg clone server local-clone |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
174 updating to branch default |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
175 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47783
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
176 |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
177 Check uncompressed |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
178 ================== |
085ebc80f84b
clone: test local clone in `test-clone-uncompressed.t` too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47659
diff
changeset
|
179 |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
180 Cannot stream clone when server.uncompressed is set |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
181 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
182 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out' |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
183 200 Script output follows |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
184 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
185 1 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
186 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
187 #if stream-legacy |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
188 $ hg debugcapabilities http://localhost:$HGPORT |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
189 Main capabilities: |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
190 batch |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
191 branchmap |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35791
diff
changeset
|
192 $USUAL_BUNDLE2_CAPS_SERVER$ |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
193 changegroupsubset |
35806
ab239e3de23b
tests: add a pattern to fix --pure tests
Augie Fackler <augie@google.com>
parents:
35805
diff
changeset
|
194 compression=$BUNDLE2_COMPRESSIONS$ |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
195 getbundle |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
196 httpheader=1024 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
197 httpmediatype=0.1rx,0.1tx,0.2tx |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
198 known |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
199 lookup |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
200 pushkey |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
201 unbundle=HG10GZ,HG10BZ,HG10UN |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
202 unbundlehash |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
203 Bundle2 capabilities: |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
204 HG20 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
205 bookmarks |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
206 changegroup |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
207 01 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
208 02 |
44412
edc8504bc26b
exchange: turn on option that makes concurrent pushes work better
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
42931
diff
changeset
|
209 checkheads |
edc8504bc26b
exchange: turn on option that makes concurrent pushes work better
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
42931
diff
changeset
|
210 related |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
211 digests |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
212 md5 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
213 sha1 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
214 sha512 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
215 error |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
216 abort |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
217 unsupportedcontent |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
218 pushraced |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
219 pushkey |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
220 hgtagsfnodes |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
221 listkeys |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
222 phases |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
223 heads |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
224 pushkey |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
225 remote-changegroup |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
226 http |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
227 https |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
228 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
229 $ hg clone --stream -U http://localhost:$HGPORT server-disabled |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
230 warning: stream clone requested but server has them disabled |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
231 requesting all changes |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
232 adding changesets |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
233 adding manifests |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
234 adding file changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
235 added 3 changesets with 1087 changes to 1087 files |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
236 new changesets 96ee1d7354c4:42e820400e84 |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
237 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
238 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1" |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
239 200 Script output follows |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
240 content-type: application/mercurial-0.2 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
241 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
242 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
243 $ f --size body --hexdump --bytes 100 |
35791
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
244 body: size=232 |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
245 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
35791
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
246 0010: cf 0b 45 52 52 4f 52 3a 41 42 4f 52 54 00 00 00 |..ERROR:ABORT...| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
247 0020: 00 01 01 07 3c 04 72 6d 65 73 73 61 67 65 73 74 |....<.rmessagest| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
248 0030: 72 65 61 6d 20 64 61 74 61 20 72 65 71 75 65 73 |ream data reques| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
249 0040: 74 65 64 20 62 75 74 20 73 65 72 76 65 72 20 64 |ted but server d| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
250 0050: 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 77 20 74 68 |oes not allow th| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
251 0060: 69 73 20 66 |is f| |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
252 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
253 #endif |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
254 #if stream-bundle2 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
255 $ hg debugcapabilities http://localhost:$HGPORT |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
256 Main capabilities: |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
257 batch |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
258 branchmap |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35791
diff
changeset
|
259 $USUAL_BUNDLE2_CAPS_SERVER$ |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
260 changegroupsubset |
35806
ab239e3de23b
tests: add a pattern to fix --pure tests
Augie Fackler <augie@google.com>
parents:
35805
diff
changeset
|
261 compression=$BUNDLE2_COMPRESSIONS$ |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
262 getbundle |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
263 httpheader=1024 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
264 httpmediatype=0.1rx,0.1tx,0.2tx |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
265 known |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
266 lookup |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
267 pushkey |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
268 unbundle=HG10GZ,HG10BZ,HG10UN |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
269 unbundlehash |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
270 Bundle2 capabilities: |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
271 HG20 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
272 bookmarks |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
273 changegroup |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
274 01 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
275 02 |
44412
edc8504bc26b
exchange: turn on option that makes concurrent pushes work better
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
42931
diff
changeset
|
276 checkheads |
edc8504bc26b
exchange: turn on option that makes concurrent pushes work better
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
42931
diff
changeset
|
277 related |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
278 digests |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
279 md5 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
280 sha1 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
281 sha512 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
282 error |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
283 abort |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
284 unsupportedcontent |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
285 pushraced |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
286 pushkey |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
287 hgtagsfnodes |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
288 listkeys |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
289 phases |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
290 heads |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
291 pushkey |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
292 remote-changegroup |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
293 http |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
294 https |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
295 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
296 $ hg clone --stream -U http://localhost:$HGPORT server-disabled |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
297 warning: stream clone requested but server has them disabled |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
298 requesting all changes |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
299 adding changesets |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
300 adding manifests |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
301 adding file changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
302 added 3 changesets with 1087 changes to 1087 files |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
303 new changesets 96ee1d7354c4:42e820400e84 |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
304 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
305 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1" |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
306 200 Script output follows |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
307 content-type: application/mercurial-0.2 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
308 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
309 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
310 $ f --size body --hexdump --bytes 100 |
35791
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
311 body: size=232 |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
312 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
35791
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
313 0010: cf 0b 45 52 52 4f 52 3a 41 42 4f 52 54 00 00 00 |..ERROR:ABORT...| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
314 0020: 00 01 01 07 3c 04 72 6d 65 73 73 61 67 65 73 74 |....<.rmessagest| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
315 0030: 72 65 61 6d 20 64 61 74 61 20 72 65 71 75 65 73 |ream data reques| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
316 0040: 74 65 64 20 62 75 74 20 73 65 72 76 65 72 20 64 |ted but server d| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
317 0050: 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 77 20 74 68 |oes not allow th| |
9adae6a20e1f
exchange: don't send stream data when server.uncompressed is set
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35790
diff
changeset
|
318 0060: 69 73 20 66 |is f| |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
319 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
320 #endif |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
321 |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
322 $ killdaemons.py |
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
323 $ cd server |
46983
e38718838808
streamclone: check the errors log in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46977
diff
changeset
|
324 $ hg serve -p $HGPORT -d --pid-file=hg.pid --error errors.txt |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
325 $ cat hg.pid > $DAEMON_PIDS |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
326 $ cd .. |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
327 |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
328 Basic clone |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
329 |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
330 #if stream-legacy |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
331 $ hg clone --stream -U http://localhost:$HGPORT clone1 |
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
332 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
333 1089 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
334 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
335 1089 files to transfer, 98.5 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
336 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
337 searching for changes |
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
338 no changes found |
46983
e38718838808
streamclone: check the errors log in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46977
diff
changeset
|
339 $ cat server/errors.txt |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
340 #endif |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
341 #if stream-bundle2 |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
342 $ hg clone --stream -U http://localhost:$HGPORT clone1 |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
343 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
344 1092 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
345 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
346 1092 files to transfer, 98.6 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
347 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) |
35767
5f5fb279fd39
streamclone: also stream caches to the client
Boris Feld <boris.feld@octobus.net>
parents:
35765
diff
changeset
|
348 |
5f5fb279fd39
streamclone: also stream caches to the client
Boris Feld <boris.feld@octobus.net>
parents:
35765
diff
changeset
|
349 $ ls -1 clone1/.hg/cache |
46314
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
350 branch2-base |
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
351 branch2-immutable |
35767
5f5fb279fd39
streamclone: also stream caches to the client
Boris Feld <boris.feld@octobus.net>
parents:
35765
diff
changeset
|
352 branch2-served |
46314
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
353 branch2-served.hidden |
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
354 branch2-visible |
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
355 branch2-visible-hidden |
35767
5f5fb279fd39
streamclone: also stream caches to the client
Boris Feld <boris.feld@octobus.net>
parents:
35765
diff
changeset
|
356 rbc-names-v1 |
5f5fb279fd39
streamclone: also stream caches to the client
Boris Feld <boris.feld@octobus.net>
parents:
35765
diff
changeset
|
357 rbc-revs-v1 |
46314
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
358 tags2 |
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
359 tags2-served |
46983
e38718838808
streamclone: check the errors log in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46977
diff
changeset
|
360 $ cat server/errors.txt |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
361 #endif |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
362 |
35787
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
363 getbundle requests with stream=1 are uncompressed |
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
364 |
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
365 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto '0.1 0.2 comp=zlib,none' --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1" |
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
366 200 Script output follows |
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
367 content-type: application/mercurial-0.2 |
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
368 |
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
369 |
47278
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
370 #if no-zstd no-rust |
35787
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
371 $ f --size --hex --bytes 256 body |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
372 body: size=118737 |
35787
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
373 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
374 0010: 80 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
375 0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10| |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
376 0030: 33 38 33 34 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3834filecount109| |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
377 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot| |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
378 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
379 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
380 0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
381 0080: 72 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 |rserevlog%2Cstor| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
382 0090: 65 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 |e....s.Bdata/0.i| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
383 00a0: 00 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 |................| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
384 00b0: 00 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff |................| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
385 00c0: 80 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c |.)c.I.#....Vg.g,| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
386 00d0: 69 d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 |i..9............| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
387 00e0: 75 30 73 26 45 64 61 74 61 2f 30 30 63 68 61 6e |u0s&Edata/00chan| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
388 00f0: 67 65 6c 6f 67 2d 61 62 33 34 39 31 38 30 61 30 |gelog-ab349180a0| |
47278
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
389 #endif |
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
390 #if zstd no-rust |
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
391 $ f --size --hex --bytes 256 body |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
392 body: size=115921 |
47278
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
393 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
394 0010: 9a 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
395 0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10| |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
396 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109| |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
397 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot| |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
398 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
399 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
400 0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
401 0080: 73 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c |sion-zstd%2Crevl| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
402 0090: 6f 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 |ogv1%2Csparserev| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
403 00a0: 6c 6f 67 25 32 43 73 74 6f 72 65 00 00 80 00 73 |log%2Cstore....s| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
404 00b0: 08 42 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 |.Bdata/0.i......| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
405 00c0: 00 00 00 00 00 02 00 00 00 01 00 00 00 00 00 00 |................| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
406 00d0: 00 01 ff ff ff ff ff ff ff ff 80 29 63 a0 49 d3 |...........)c.I.| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
407 00e0: 23 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 |#....Vg.g,i..9..| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
408 00f0: 00 00 00 00 00 00 00 00 00 00 75 30 73 26 45 64 |..........u0s&Ed| |
47278
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
409 #endif |
47279
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
410 #if zstd rust no-dirstate-v2 |
47278
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
411 $ f --size --hex --bytes 256 body |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
412 body: size=115942 |
47278
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
413 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
414 0010: af 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
415 0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10| |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
416 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109| |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
417 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot| |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
418 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
419 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
420 0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
421 0080: 65 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f |emap%2Crevlog-co| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
422 0090: 6d 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 |mpression-zstd%2| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
423 00a0: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 |Crevlogv1%2Cspar| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
424 00b0: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
425 00c0: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
426 00d0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
427 00e0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................| |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
428 00f0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i| |
47278
6a60f03d2241
tests: More cleanly separate expected hexdump output
Simon Sapin <simon.sapin@octobus.net>
parents:
47183
diff
changeset
|
429 #endif |
47279
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
430 #if zstd dirstate-v2 |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
431 $ f --size --hex --bytes 256 body |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
432 body: size=109549 |
47279
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
433 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
434 0010: c0 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
435 0020: 05 09 04 0c 85 62 79 74 65 63 6f 75 6e 74 39 35 |.....bytecount95| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
436 0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
437 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
438 0050: 6e 63 6f 64 65 25 32 43 65 78 70 2d 64 69 72 73 |ncode%2Cexp-dirs| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
439 0060: 74 61 74 65 2d 76 32 25 32 43 66 6e 63 61 63 68 |tate-v2%2Cfncach| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
440 0070: 65 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 |e%2Cgeneraldelta| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
441 0080: 25 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f |%2Cpersistent-no| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
442 0090: 64 65 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 |demap%2Crevlog-c| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
443 00a0: 6f 6d 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 |ompression-zstd%| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
444 00b0: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
445 00c0: 72 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 |rserevlog%2Cstor| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
446 00d0: 65 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 |e....s.Bdata/0.i| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
447 00e0: 00 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 |................| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
448 00f0: 00 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff |................| |
40b51c28b242
dirstate-v2: Update the expected output of some tests for new requirement
Simon Sapin <simon.sapin@octobus.net>
parents:
47278
diff
changeset
|
449 #endif |
35787
a84dbc87dae9
exchange: send bundle2 stream clones uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35767
diff
changeset
|
450 |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
451 --uncompressed is an alias to --stream |
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
452 |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
453 #if stream-legacy |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
454 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
455 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
456 1089 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
457 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
458 1089 files to transfer, 98.5 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
459 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
460 searching for changes |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
461 no changes found |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
462 #endif |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
463 #if stream-bundle2 |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
464 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
465 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
466 1092 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
467 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
468 1092 files to transfer, 98.6 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
469 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
470 #endif |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
471 |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
472 Clone with background file closing enabled |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
473 |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
474 #if stream-legacy |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
475 $ hg --debug --config worker.backgroundclose=true --config worker.backgroundcloseminfilecount=1 clone --stream -U http://localhost:$HGPORT clone-background | grep -v adding |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
476 using http://localhost:$HGPORT/ |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
477 sending capabilities command |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
478 sending branchmap command |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
479 streaming all changes |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
480 sending stream_out command |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
481 1089 files to transfer, 101 KB of data (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
482 1089 files to transfer, 98.5 KB of data (zstd !) |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
483 starting 4 threads for background file closing |
39301
5763216ba311
transaction: remember original len(repo) instead of tracking added revs (API)
Yuya Nishihara <yuya@tcha.org>
parents:
38021
diff
changeset
|
484 updating the branch cache |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
485 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
486 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
487 query 1; heads |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
488 sending batch command |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
489 searching for changes |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
490 all remote heads known locally |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
491 no changes found |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
492 sending getbundle command |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
493 bundle2-input-bundle: with-transaction |
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
494 bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
34322
10e162bb9bf5
pull: use 'phase-heads' to retrieve phase information
Boris Feld <boris.feld@octobus.net>
parents:
32744
diff
changeset
|
495 bundle2-input-part: "phase-heads" supported |
10e162bb9bf5
pull: use 'phase-heads' to retrieve phase information
Boris Feld <boris.feld@octobus.net>
parents:
32744
diff
changeset
|
496 bundle2-input-part: total payload size 24 |
42931
181ee2118a96
bundle2: fix an off-by-one in debug message of number of parts
Martin von Zweigbergk <martinvonz@google.com>
parents:
42893
diff
changeset
|
497 bundle2-input-bundle: 2 parts total |
27897
2fdbf22a1b63
streamclone: use backgroundfilecloser (issue4889)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
498 checking for updated bookmarks |
46314
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
499 updating the branch cache |
40034
393e44324037
httppeer: report http statistics
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39722
diff
changeset
|
500 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
501 #endif |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
502 #if stream-bundle2 |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
503 $ hg --debug --config worker.backgroundclose=true --config worker.backgroundcloseminfilecount=1 clone --stream -U http://localhost:$HGPORT clone-background | grep -v adding |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
504 using http://localhost:$HGPORT/ |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
505 sending capabilities command |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
506 query 1; heads |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
507 sending batch command |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
508 streaming all changes |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
509 sending getbundle command |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
510 bundle2-input-bundle: with-transaction |
35788
b116a66bcc44
bundle2: move version of stream clone into part name
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35787
diff
changeset
|
511 bundle2-input-part: "stream2" (params: 3 mandatory) supported |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
512 applying stream bundle |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
513 1092 files to transfer, 101 KB of data (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
514 1092 files to transfer, 98.6 KB of data (zstd !) |
35767
5f5fb279fd39
streamclone: also stream caches to the client
Boris Feld <boris.feld@octobus.net>
parents:
35765
diff
changeset
|
515 starting 4 threads for background file closing |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
516 starting 4 threads for background file closing |
39301
5763216ba311
transaction: remember original len(repo) instead of tracking added revs (API)
Yuya Nishihara <yuya@tcha.org>
parents:
38021
diff
changeset
|
517 updating the branch cache |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
518 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
519 bundle2-input-part: total payload size 118568 (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
520 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
521 bundle2-input-part: total payload size 115726 (zstd !) |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
522 bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
42931
181ee2118a96
bundle2: fix an off-by-one in debug message of number of parts
Martin von Zweigbergk <martinvonz@google.com>
parents:
42893
diff
changeset
|
523 bundle2-input-bundle: 2 parts total |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
524 checking for updated bookmarks |
46314
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45076
diff
changeset
|
525 updating the branch cache |
40034
393e44324037
httppeer: report http statistics
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39722
diff
changeset
|
526 (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
527 #endif |
28517
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
528 |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
529 Cannot stream clone when there are secret changesets |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
530 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
531 $ hg -R server phase --force --secret -r tip |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
532 $ hg clone --stream -U http://localhost:$HGPORT secret-denied |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
533 warning: stream clone requested but server has them disabled |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
534 requesting all changes |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
535 adding changesets |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
536 adding manifests |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
537 adding file changes |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
538 added 2 changesets with 1025 changes to 1025 files |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
539 new changesets 96ee1d7354c4:c17445101a72 |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
540 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
541 $ killdaemons.py |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
542 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
543 Streaming of secrets can be overridden by server config |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
544 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
545 $ cd server |
34483
a6d95a8b7243
serve: make tests compatible with chg
Saurabh Singh <singhsrb@fb.com>
parents:
34393
diff
changeset
|
546 $ hg serve --config server.uncompressedallowsecret=true -p $HGPORT -d --pid-file=hg.pid |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
547 $ cat hg.pid > $DAEMON_PIDS |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
548 $ cd .. |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
549 |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
550 #if stream-legacy |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
551 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
552 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
553 1089 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
554 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
555 1089 files to transfer, 98.5 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
556 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
557 searching for changes |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
558 no changes found |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
559 #endif |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
560 #if stream-bundle2 |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
561 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
562 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
563 1092 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
564 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
565 1092 files to transfer, 98.6 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
566 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
567 #endif |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
568 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
569 $ killdaemons.py |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
570 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
571 Verify interaction between preferuncompressed and secret presence |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
572 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
573 $ cd server |
34483
a6d95a8b7243
serve: make tests compatible with chg
Saurabh Singh <singhsrb@fb.com>
parents:
34393
diff
changeset
|
574 $ hg serve --config server.preferuncompressed=true -p $HGPORT -d --pid-file=hg.pid |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
575 $ cat hg.pid > $DAEMON_PIDS |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
576 $ cd .. |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
577 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
578 $ hg clone -U http://localhost:$HGPORT preferuncompressed-secret |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
579 requesting all changes |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
580 adding changesets |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
581 adding manifests |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
582 adding file changes |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
583 added 2 changesets with 1025 changes to 1025 files |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
584 new changesets 96ee1d7354c4:c17445101a72 |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
585 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
586 $ killdaemons.py |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
587 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
588 Clone not allowed when full bundles disabled and can't serve secrets |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
589 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
590 $ cd server |
34483
a6d95a8b7243
serve: make tests compatible with chg
Saurabh Singh <singhsrb@fb.com>
parents:
34393
diff
changeset
|
591 $ hg serve --config server.disablefullbundle=true -p $HGPORT -d --pid-file=hg.pid |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
592 $ cat hg.pid > $DAEMON_PIDS |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
593 $ cd .. |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
594 |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
595 $ hg clone --stream http://localhost:$HGPORT secret-full-disabled |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
596 warning: stream clone requested but server has them disabled |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
597 requesting all changes |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
598 remote: abort: server has pull-based clones disabled |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
599 abort: pull failed on remote |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
600 (remove --pull if specified or upgrade Mercurial) |
46977
3f87d2af0bd6
errors: raise RemoteError in some places in exchange.py
Martin von Zweigbergk <martinvonz@google.com>
parents:
46884
diff
changeset
|
601 [100] |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
602 |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
603 Local stream clone with secrets involved |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
604 (This is just a test over behavior: if you have access to the repo's files, |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
605 there is no security so it isn't important to prevent a clone here.) |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
606 |
34393
fffd3369aa83
commands: rename clone --uncompressed to --stream and document
Gregory Szorc <gregory.szorc@gmail.com>
parents:
34322
diff
changeset
|
607 $ hg clone -U --stream server local-secret |
32744
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
608 warning: stream clone requested but server has them disabled |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
609 requesting all changes |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
610 adding changesets |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
611 adding manifests |
33b7283a3828
streamclone: consider secret changesets (BC) (issue5589)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31252
diff
changeset
|
612 adding file changes |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
613 added 2 changesets with 1025 changes to 1025 files |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
614 new changesets 96ee1d7354c4:c17445101a72 |
28517
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
615 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
616 Stream clone while repo is changing: |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
617 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
618 $ mkdir changing |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
619 $ cd changing |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
620 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
621 extension for delaying the server process so we reliably can modify the repo |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
622 while cloning |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
623 |
46986
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
624 $ cat > stream_steps.py <<EOF |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
625 > import os |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
626 > import sys |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
627 > from mercurial import ( |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
628 > encoding, |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
629 > extensions, |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
630 > streamclone, |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
631 > testing, |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
632 > ) |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
633 > WALKED_FILE_1 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_1'] |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
634 > WALKED_FILE_2 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_2'] |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
635 > |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
636 > def _test_sync_point_walk_1(orig, repo): |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
637 > testing.write_file(WALKED_FILE_1) |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
638 > |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
639 > def _test_sync_point_walk_2(orig, repo): |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
640 > assert repo._currentlock(repo._lockref) is None |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
641 > testing.wait_file(WALKED_FILE_2) |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
642 > |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
643 > extensions.wrapfunction( |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
644 > streamclone, |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
645 > '_test_sync_point_walk_1', |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
646 > _test_sync_point_walk_1 |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
647 > ) |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
648 > extensions.wrapfunction( |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
649 > streamclone, |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
650 > '_test_sync_point_walk_2', |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
651 > _test_sync_point_walk_2 |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
652 > ) |
28517
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
653 > EOF |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
654 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
655 prepare repo with small and big file to cover both code paths in emitrevlogdata |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
656 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
657 $ hg init repo |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
658 $ touch repo/f1 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
659 $ $TESTDIR/seq.py 50000 > repo/f2 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
660 $ hg -R repo ci -Aqm "0" |
46986
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
661 $ HG_TEST_STREAM_WALKED_FILE_1="$TESTTMP/sync_file_walked_1" |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
662 $ export HG_TEST_STREAM_WALKED_FILE_1 |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
663 $ HG_TEST_STREAM_WALKED_FILE_2="$TESTTMP/sync_file_walked_2" |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
664 $ export HG_TEST_STREAM_WALKED_FILE_2 |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
665 $ HG_TEST_STREAM_WALKED_FILE_3="$TESTTMP/sync_file_walked_3" |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
666 $ export HG_TEST_STREAM_WALKED_FILE_3 |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
667 # $ cat << EOF >> $HGRCPATH |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
668 # > [hooks] |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
669 # > pre-clone=rm -f "$TESTTMP/sync_file_walked_*" |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
670 # > EOF |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
671 $ hg serve -R repo -p $HGPORT1 -d --error errors.log --pid-file=hg.pid --config extensions.stream_steps="$RUNTESTDIR/testlib/ext-stream-clone-steps.py" |
28517
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
672 $ cat hg.pid >> $DAEMON_PIDS |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
673 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
674 clone while modifying the repo between stating file with write lock and |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
675 actually serving file content |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
676 |
46986
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
677 $ (hg clone -q --stream -U http://localhost:$HGPORT1 clone; touch "$HG_TEST_STREAM_WALKED_FILE_3") & |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
678 $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_1 |
28517
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
679 $ echo >> repo/f1 |
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
680 $ echo >> repo/f2 |
45076
23119371df5e
test-clone-uncompressed: use config to silence the lock warning
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45016
diff
changeset
|
681 $ hg -R repo ci -m "1" --config ui.timeout.warn=-1 |
46986
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
682 $ touch $HG_TEST_STREAM_WALKED_FILE_2 |
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
683 $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_3 |
28517
95163ababeb8
tests: add test of stream clone of repo that is changing
Mads Kiilerich <madski@unity3d.com>
parents:
28389
diff
changeset
|
684 $ hg -R clone id |
28518
aa440c3d7c5d
streamclone: fix error when store files grow while stream cloning
Mads Kiilerich <madski@unity3d.com>
parents:
28517
diff
changeset
|
685 000000000000 |
46986
faa43f09ad98
streamclone: remove sleep based "synchronisation" in tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46983
diff
changeset
|
686 $ cat errors.log |
35747
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
687 $ cd .. |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
688 |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
689 Stream repository with bookmarks |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
690 -------------------------------- |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
691 |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
692 (revert introduction of secret changeset) |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
693 |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
694 $ hg -R server phase --draft 'secret()' |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
695 |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
696 add a bookmark |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
697 |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
698 $ hg -R server bookmark -r tip some-bookmark |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
699 |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
700 clone it |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
701 |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
702 #if stream-legacy |
35747
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
703 $ hg clone --stream http://localhost:$HGPORT with-bookmarks |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
704 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
705 1089 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
706 transferred 101 KB in * seconds (*) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
707 1089 files to transfer, 98.5 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
708 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
35747
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
709 searching for changes |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
710 no changes found |
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
711 updating to branch default |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
712 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
713 #endif |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
714 #if stream-bundle2 |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
715 $ hg clone --stream http://localhost:$HGPORT with-bookmarks |
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
716 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
717 1095 files to transfer, 102 KB of data (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
718 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
719 1095 files to transfer, 98.8 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
720 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
721 updating to branch default |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
722 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
35763
7eedbd5d4880
streamclone: add support for bundle2 based stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35747
diff
changeset
|
723 #endif |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
724 $ hg verify -R with-bookmarks |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
725 checking changesets |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
726 checking manifests |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
727 crosschecking files in changesets and manifests |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
728 checking files |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
729 checked 3 changesets with 1087 changes to 1087 files |
35747
de32acb24949
stream: add a test showing we also clone bookmarks
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
730 $ hg -R with-bookmarks bookmarks |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
731 some-bookmark 2:42e820400e84 |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
732 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
733 Stream repository with phases |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
734 ----------------------------- |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
735 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
736 Clone as publishing |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
737 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
738 $ hg -R server phase -r 'all()' |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
739 0: draft |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
740 1: draft |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
741 2: draft |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
742 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
743 #if stream-legacy |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
744 $ hg clone --stream http://localhost:$HGPORT phase-publish |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
745 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
746 1089 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
747 transferred 101 KB in * seconds (*) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
748 1089 files to transfer, 98.5 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
749 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
750 searching for changes |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
751 no changes found |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
752 updating to branch default |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
753 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
754 #endif |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
755 #if stream-bundle2 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
756 $ hg clone --stream http://localhost:$HGPORT phase-publish |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
757 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
758 1095 files to transfer, 102 KB of data (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
759 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
760 1095 files to transfer, 98.8 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
761 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
762 updating to branch default |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
763 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
764 #endif |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
765 $ hg verify -R phase-publish |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
766 checking changesets |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
767 checking manifests |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
768 crosschecking files in changesets and manifests |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
769 checking files |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
770 checked 3 changesets with 1087 changes to 1087 files |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
771 $ hg -R phase-publish phase -r 'all()' |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
772 0: public |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
773 1: public |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
774 2: public |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
775 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
776 Clone as non publishing |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
777 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
778 $ cat << EOF >> server/.hg/hgrc |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
779 > [phases] |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
780 > publish = False |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
781 > EOF |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
782 $ killdaemons.py |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
783 $ hg -R server serve -p $HGPORT -d --pid-file=hg.pid |
35789
8ed5f7609728
tests: add more testing around server.uncompressed
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35788
diff
changeset
|
784 $ cat hg.pid > $DAEMON_PIDS |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
785 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
786 #if stream-legacy |
35805
784ac51f8bab
streamclone: add a comment about non-publishing being broken with v1
Boris Feld <boris.feld@octobus.net>
parents:
35793
diff
changeset
|
787 |
784ac51f8bab
streamclone: add a comment about non-publishing being broken with v1
Boris Feld <boris.feld@octobus.net>
parents:
35793
diff
changeset
|
788 With v1 of the stream protocol, changeset are always cloned as public. It make |
784ac51f8bab
streamclone: add a comment about non-publishing being broken with v1
Boris Feld <boris.feld@octobus.net>
parents:
35793
diff
changeset
|
789 stream v1 unsuitable for non-publishing repository. |
784ac51f8bab
streamclone: add a comment about non-publishing being broken with v1
Boris Feld <boris.feld@octobus.net>
parents:
35793
diff
changeset
|
790 |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
791 $ hg clone --stream http://localhost:$HGPORT phase-no-publish |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
792 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
793 1089 files to transfer, 101 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
794 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
795 1089 files to transfer, 98.5 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
796 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
797 searching for changes |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
798 no changes found |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
799 updating to branch default |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
800 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
801 $ hg -R phase-no-publish phase -r 'all()' |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
802 0: public |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
803 1: public |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
804 2: public |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
805 #endif |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
806 #if stream-bundle2 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
807 $ hg clone --stream http://localhost:$HGPORT phase-no-publish |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
808 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
809 1096 files to transfer, 102 KB of data (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
810 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
811 1096 files to transfer, 98.8 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
812 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
813 updating to branch default |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
814 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
815 $ hg -R phase-no-publish phase -r 'all()' |
35765
56c30b31afbe
streamclone: add support for cloning non append-only file
Boris Feld <boris.feld@octobus.net>
parents:
35764
diff
changeset
|
816 0: draft |
56c30b31afbe
streamclone: add support for cloning non append-only file
Boris Feld <boris.feld@octobus.net>
parents:
35764
diff
changeset
|
817 1: draft |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
818 2: draft |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
819 #endif |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
820 $ hg verify -R phase-no-publish |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
821 checking changesets |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
822 checking manifests |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
823 crosschecking files in changesets and manifests |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
824 checking files |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
825 checked 3 changesets with 1087 changes to 1087 files |
35764
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
826 |
b6ffd4194639
streamclone: tests phase exchange during stream clone
Boris Feld <boris.feld@octobus.net>
parents:
35763
diff
changeset
|
827 $ killdaemons.py |
40398
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
828 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
829 #if stream-legacy |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
830 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
831 With v1 of the stream protocol, changeset are always cloned as public. There's |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
832 no obsolescence markers exchange in stream v1. |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
833 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
834 #endif |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
835 #if stream-bundle2 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
836 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
837 Stream repository with obsolescence |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
838 ----------------------------------- |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
839 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
840 Clone non-publishing with obsolescence |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
841 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
842 $ cat >> $HGRCPATH << EOF |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
843 > [experimental] |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
844 > evolution=all |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
845 > EOF |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
846 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
847 $ cd server |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
848 $ echo foo > foo |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
849 $ hg -q commit -m 'about to be pruned' |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
850 $ hg debugobsolete `hg log -r . -T '{node}'` -d '0 0' -u test --record-parents |
42893
34a46d48d24e
debugobsolete: also issue the "new obsmarkers" messsage
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40978
diff
changeset
|
851 1 new obsolescence markers |
40398
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
852 obsoleted 1 changesets |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
853 $ hg up null -q |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
854 $ hg log -T '{rev}: {phase}\n' |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
855 2: draft |
40398
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
856 1: draft |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
857 0: draft |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
858 $ hg serve -p $HGPORT -d --pid-file=hg.pid |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
859 $ cat hg.pid > $DAEMON_PIDS |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
860 $ cd .. |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
861 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
862 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
863 streaming all changes |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
864 1097 files to transfer, 102 KB of data (no-zstd !) |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
865 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
866 1097 files to transfer, 99.2 KB of data (zstd !) |
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
867 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd !) |
40398
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
868 $ hg -R with-obsolescence log -T '{rev}: {phase}\n' |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
869 2: draft |
40398
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
870 1: draft |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
871 0: draft |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
872 $ hg debugobsolete -R with-obsolescence |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
873 e53e122156df12330d3a0b72351e3a84bfd14195 0 {42e820400e843bc479ad36068ff772a69c8affe9} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
47659
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
874 $ hg verify -R with-obsolescence |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
875 checking changesets |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
876 checking manifests |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
877 crosschecking files in changesets and manifests |
f030c7d22032
walk: no longer ignore revlogs of files starting with `undo.` (issue6542)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47279
diff
changeset
|
878 checking files |
47784
17211649bac2
clone: add a file with special character while testing uncompressed
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47783
diff
changeset
|
879 checked 4 changesets with 1088 changes to 1087 files |
40398
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
880 |
40399
4ab6e7b4fe8a
streamclone: abort when client needs to handle obsmarkers, but doesn't
Anton Shestakov <av6@dwimlabs.net>
parents:
40398
diff
changeset
|
881 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution |
4ab6e7b4fe8a
streamclone: abort when client needs to handle obsmarkers, but doesn't
Anton Shestakov <av6@dwimlabs.net>
parents:
40398
diff
changeset
|
882 streaming all changes |
4ab6e7b4fe8a
streamclone: abort when client needs to handle obsmarkers, but doesn't
Anton Shestakov <av6@dwimlabs.net>
parents:
40398
diff
changeset
|
883 remote: abort: server has obsolescence markers, but client cannot receive them via stream clone |
4ab6e7b4fe8a
streamclone: abort when client needs to handle obsmarkers, but doesn't
Anton Shestakov <av6@dwimlabs.net>
parents:
40398
diff
changeset
|
884 abort: pull failed on remote |
46977
3f87d2af0bd6
errors: raise RemoteError in some places in exchange.py
Martin von Zweigbergk <martinvonz@google.com>
parents:
46884
diff
changeset
|
885 [100] |
40399
4ab6e7b4fe8a
streamclone: abort when client needs to handle obsmarkers, but doesn't
Anton Shestakov <av6@dwimlabs.net>
parents:
40398
diff
changeset
|
886 |
40398
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
887 $ killdaemons.py |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
888 |
0ac794e0e285
streamclone: include obsstore file into stream bundle if client can read it
Anton Shestakov <av6@dwimlabs.net>
parents:
40034
diff
changeset
|
889 #endif |