Show More
@@ -1,670 +1,687 b'' | |||||
1 | #require serve no-reposimplestore no-chg |
|
1 | #require serve no-reposimplestore no-chg | |
2 |
|
2 | |||
3 | #testcases stream-legacy stream-bundle2 |
|
3 | #testcases stream-legacy stream-bundle2 | |
4 |
|
4 | |||
5 | #if stream-legacy |
|
5 | #if stream-legacy | |
6 | $ cat << EOF >> $HGRCPATH |
|
6 | $ cat << EOF >> $HGRCPATH | |
7 | > [server] |
|
7 | > [server] | |
8 | > bundle2.stream = no |
|
8 | > bundle2.stream = no | |
9 | > EOF |
|
9 | > EOF | |
10 | #endif |
|
10 | #endif | |
11 |
|
11 | |||
12 | Initialize repository |
|
12 | Initialize repository | |
13 | the status call is to check for issue5130 |
|
13 | the status call is to check for issue5130 | |
14 |
|
14 | |||
15 | $ hg init server |
|
15 | $ hg init server | |
16 | $ cd server |
|
16 | $ cd server | |
17 | $ touch foo |
|
17 | $ touch foo | |
18 | $ hg -q commit -A -m initial |
|
18 | $ hg -q commit -A -m initial | |
19 | >>> for i in range(1024): |
|
19 | >>> for i in range(1024): | |
20 | ... with open(str(i), 'wb') as fh: |
|
20 | ... with open(str(i), 'wb') as fh: | |
21 | ... fh.write(b"%d" % i) and None |
|
21 | ... fh.write(b"%d" % i) and None | |
22 | $ hg -q commit -A -m 'add a lot of files' |
|
22 | $ hg -q commit -A -m 'add a lot of files' | |
23 | $ hg st |
|
23 | $ hg st | |
24 | $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid |
|
24 | $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid | |
25 | $ cat hg.pid > $DAEMON_PIDS |
|
25 | $ cat hg.pid > $DAEMON_PIDS | |
26 | $ cd .. |
|
26 | $ cd .. | |
27 |
|
27 | |||
28 | Cannot stream clone when server.uncompressed is set |
|
28 | Cannot stream clone when server.uncompressed is set | |
29 |
|
29 | |||
30 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out' |
|
30 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out' | |
31 | 200 Script output follows |
|
31 | 200 Script output follows | |
32 |
|
32 | |||
33 | 1 |
|
33 | 1 | |
34 |
|
34 | |||
35 | #if stream-legacy |
|
35 | #if stream-legacy | |
36 | $ hg debugcapabilities http://localhost:$HGPORT |
|
36 | $ hg debugcapabilities http://localhost:$HGPORT | |
37 | Main capabilities: |
|
37 | Main capabilities: | |
38 | batch |
|
38 | batch | |
39 | branchmap |
|
39 | branchmap | |
40 | $USUAL_BUNDLE2_CAPS_SERVER$ |
|
40 | $USUAL_BUNDLE2_CAPS_SERVER$ | |
41 | changegroupsubset |
|
41 | changegroupsubset | |
42 | compression=$BUNDLE2_COMPRESSIONS$ |
|
42 | compression=$BUNDLE2_COMPRESSIONS$ | |
43 | getbundle |
|
43 | getbundle | |
44 | httpheader=1024 |
|
44 | httpheader=1024 | |
45 | httpmediatype=0.1rx,0.1tx,0.2tx |
|
45 | httpmediatype=0.1rx,0.1tx,0.2tx | |
46 | known |
|
46 | known | |
47 | lookup |
|
47 | lookup | |
48 | pushkey |
|
48 | pushkey | |
49 | unbundle=HG10GZ,HG10BZ,HG10UN |
|
49 | unbundle=HG10GZ,HG10BZ,HG10UN | |
50 | unbundlehash |
|
50 | unbundlehash | |
51 | Bundle2 capabilities: |
|
51 | Bundle2 capabilities: | |
52 | HG20 |
|
52 | HG20 | |
53 | bookmarks |
|
53 | bookmarks | |
54 | changegroup |
|
54 | changegroup | |
55 | 01 |
|
55 | 01 | |
56 | 02 |
|
56 | 02 | |
57 | checkheads |
|
57 | checkheads | |
58 | related |
|
58 | related | |
59 | digests |
|
59 | digests | |
60 | md5 |
|
60 | md5 | |
61 | sha1 |
|
61 | sha1 | |
62 | sha512 |
|
62 | sha512 | |
63 | error |
|
63 | error | |
64 | abort |
|
64 | abort | |
65 | unsupportedcontent |
|
65 | unsupportedcontent | |
66 | pushraced |
|
66 | pushraced | |
67 | pushkey |
|
67 | pushkey | |
68 | hgtagsfnodes |
|
68 | hgtagsfnodes | |
69 | listkeys |
|
69 | listkeys | |
70 | phases |
|
70 | phases | |
71 | heads |
|
71 | heads | |
72 | pushkey |
|
72 | pushkey | |
73 | remote-changegroup |
|
73 | remote-changegroup | |
74 | http |
|
74 | http | |
75 | https |
|
75 | https | |
76 |
|
76 | |||
77 | $ hg clone --stream -U http://localhost:$HGPORT server-disabled |
|
77 | $ hg clone --stream -U http://localhost:$HGPORT server-disabled | |
78 | warning: stream clone requested but server has them disabled |
|
78 | warning: stream clone requested but server has them disabled | |
79 | requesting all changes |
|
79 | requesting all changes | |
80 | adding changesets |
|
80 | adding changesets | |
81 | adding manifests |
|
81 | adding manifests | |
82 | adding file changes |
|
82 | adding file changes | |
83 | added 2 changesets with 1025 changes to 1025 files |
|
83 | added 2 changesets with 1025 changes to 1025 files | |
84 | new changesets 96ee1d7354c4:c17445101a72 |
|
84 | new changesets 96ee1d7354c4:c17445101a72 | |
85 |
|
85 | |||
86 | $ 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" |
|
86 | $ 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" | |
87 | 200 Script output follows |
|
87 | 200 Script output follows | |
88 | content-type: application/mercurial-0.2 |
|
88 | content-type: application/mercurial-0.2 | |
89 |
|
89 | |||
90 |
|
90 | |||
91 | $ f --size body --hexdump --bytes 100 |
|
91 | $ f --size body --hexdump --bytes 100 | |
92 | body: size=232 |
|
92 | body: size=232 | |
93 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
|
93 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| | |
94 | 0010: cf 0b 45 52 52 4f 52 3a 41 42 4f 52 54 00 00 00 |..ERROR:ABORT...| |
|
94 | 0010: cf 0b 45 52 52 4f 52 3a 41 42 4f 52 54 00 00 00 |..ERROR:ABORT...| | |
95 | 0020: 00 01 01 07 3c 04 72 6d 65 73 73 61 67 65 73 74 |....<.rmessagest| |
|
95 | 0020: 00 01 01 07 3c 04 72 6d 65 73 73 61 67 65 73 74 |....<.rmessagest| | |
96 | 0030: 72 65 61 6d 20 64 61 74 61 20 72 65 71 75 65 73 |ream data reques| |
|
96 | 0030: 72 65 61 6d 20 64 61 74 61 20 72 65 71 75 65 73 |ream data reques| | |
97 | 0040: 74 65 64 20 62 75 74 20 73 65 72 76 65 72 20 64 |ted but server d| |
|
97 | 0040: 74 65 64 20 62 75 74 20 73 65 72 76 65 72 20 64 |ted but server d| | |
98 | 0050: 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 77 20 74 68 |oes not allow th| |
|
98 | 0050: 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 77 20 74 68 |oes not allow th| | |
99 | 0060: 69 73 20 66 |is f| |
|
99 | 0060: 69 73 20 66 |is f| | |
100 |
|
100 | |||
101 | #endif |
|
101 | #endif | |
102 | #if stream-bundle2 |
|
102 | #if stream-bundle2 | |
103 | $ hg debugcapabilities http://localhost:$HGPORT |
|
103 | $ hg debugcapabilities http://localhost:$HGPORT | |
104 | Main capabilities: |
|
104 | Main capabilities: | |
105 | batch |
|
105 | batch | |
106 | branchmap |
|
106 | branchmap | |
107 | $USUAL_BUNDLE2_CAPS_SERVER$ |
|
107 | $USUAL_BUNDLE2_CAPS_SERVER$ | |
108 | changegroupsubset |
|
108 | changegroupsubset | |
109 | compression=$BUNDLE2_COMPRESSIONS$ |
|
109 | compression=$BUNDLE2_COMPRESSIONS$ | |
110 | getbundle |
|
110 | getbundle | |
111 | httpheader=1024 |
|
111 | httpheader=1024 | |
112 | httpmediatype=0.1rx,0.1tx,0.2tx |
|
112 | httpmediatype=0.1rx,0.1tx,0.2tx | |
113 | known |
|
113 | known | |
114 | lookup |
|
114 | lookup | |
115 | pushkey |
|
115 | pushkey | |
116 | unbundle=HG10GZ,HG10BZ,HG10UN |
|
116 | unbundle=HG10GZ,HG10BZ,HG10UN | |
117 | unbundlehash |
|
117 | unbundlehash | |
118 | Bundle2 capabilities: |
|
118 | Bundle2 capabilities: | |
119 | HG20 |
|
119 | HG20 | |
120 | bookmarks |
|
120 | bookmarks | |
121 | changegroup |
|
121 | changegroup | |
122 | 01 |
|
122 | 01 | |
123 | 02 |
|
123 | 02 | |
124 | checkheads |
|
124 | checkheads | |
125 | related |
|
125 | related | |
126 | digests |
|
126 | digests | |
127 | md5 |
|
127 | md5 | |
128 | sha1 |
|
128 | sha1 | |
129 | sha512 |
|
129 | sha512 | |
130 | error |
|
130 | error | |
131 | abort |
|
131 | abort | |
132 | unsupportedcontent |
|
132 | unsupportedcontent | |
133 | pushraced |
|
133 | pushraced | |
134 | pushkey |
|
134 | pushkey | |
135 | hgtagsfnodes |
|
135 | hgtagsfnodes | |
136 | listkeys |
|
136 | listkeys | |
137 | phases |
|
137 | phases | |
138 | heads |
|
138 | heads | |
139 | pushkey |
|
139 | pushkey | |
140 | remote-changegroup |
|
140 | remote-changegroup | |
141 | http |
|
141 | http | |
142 | https |
|
142 | https | |
143 |
|
143 | |||
144 | $ hg clone --stream -U http://localhost:$HGPORT server-disabled |
|
144 | $ hg clone --stream -U http://localhost:$HGPORT server-disabled | |
145 | warning: stream clone requested but server has them disabled |
|
145 | warning: stream clone requested but server has them disabled | |
146 | requesting all changes |
|
146 | requesting all changes | |
147 | adding changesets |
|
147 | adding changesets | |
148 | adding manifests |
|
148 | adding manifests | |
149 | adding file changes |
|
149 | adding file changes | |
150 | added 2 changesets with 1025 changes to 1025 files |
|
150 | added 2 changesets with 1025 changes to 1025 files | |
151 | new changesets 96ee1d7354c4:c17445101a72 |
|
151 | new changesets 96ee1d7354c4:c17445101a72 | |
152 |
|
152 | |||
153 | $ 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" |
|
153 | $ 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" | |
154 | 200 Script output follows |
|
154 | 200 Script output follows | |
155 | content-type: application/mercurial-0.2 |
|
155 | content-type: application/mercurial-0.2 | |
156 |
|
156 | |||
157 |
|
157 | |||
158 | $ f --size body --hexdump --bytes 100 |
|
158 | $ f --size body --hexdump --bytes 100 | |
159 | body: size=232 |
|
159 | body: size=232 | |
160 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
|
160 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| | |
161 | 0010: cf 0b 45 52 52 4f 52 3a 41 42 4f 52 54 00 00 00 |..ERROR:ABORT...| |
|
161 | 0010: cf 0b 45 52 52 4f 52 3a 41 42 4f 52 54 00 00 00 |..ERROR:ABORT...| | |
162 | 0020: 00 01 01 07 3c 04 72 6d 65 73 73 61 67 65 73 74 |....<.rmessagest| |
|
162 | 0020: 00 01 01 07 3c 04 72 6d 65 73 73 61 67 65 73 74 |....<.rmessagest| | |
163 | 0030: 72 65 61 6d 20 64 61 74 61 20 72 65 71 75 65 73 |ream data reques| |
|
163 | 0030: 72 65 61 6d 20 64 61 74 61 20 72 65 71 75 65 73 |ream data reques| | |
164 | 0040: 74 65 64 20 62 75 74 20 73 65 72 76 65 72 20 64 |ted but server d| |
|
164 | 0040: 74 65 64 20 62 75 74 20 73 65 72 76 65 72 20 64 |ted but server d| | |
165 | 0050: 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 77 20 74 68 |oes not allow th| |
|
165 | 0050: 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 77 20 74 68 |oes not allow th| | |
166 | 0060: 69 73 20 66 |is f| |
|
166 | 0060: 69 73 20 66 |is f| | |
167 |
|
167 | |||
168 | #endif |
|
168 | #endif | |
169 |
|
169 | |||
170 | $ killdaemons.py |
|
170 | $ killdaemons.py | |
171 | $ cd server |
|
171 | $ cd server | |
172 | $ hg serve -p $HGPORT -d --pid-file=hg.pid --error errors.txt |
|
172 | $ hg serve -p $HGPORT -d --pid-file=hg.pid --error errors.txt | |
173 | $ cat hg.pid > $DAEMON_PIDS |
|
173 | $ cat hg.pid > $DAEMON_PIDS | |
174 | $ cd .. |
|
174 | $ cd .. | |
175 |
|
175 | |||
176 | Basic clone |
|
176 | Basic clone | |
177 |
|
177 | |||
178 | #if stream-legacy |
|
178 | #if stream-legacy | |
179 | $ hg clone --stream -U http://localhost:$HGPORT clone1 |
|
179 | $ hg clone --stream -U http://localhost:$HGPORT clone1 | |
180 | streaming all changes |
|
180 | streaming all changes | |
181 | 1027 files to transfer, 96.3 KB of data (no-zstd !) |
|
181 | 1027 files to transfer, 96.3 KB of data (no-zstd !) | |
182 | transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !) |
|
182 | transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !) | |
183 | 1027 files to transfer, 93.5 KB of data (zstd !) |
|
183 | 1027 files to transfer, 93.5 KB of data (zstd !) | |
184 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) |
|
184 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) | |
185 | searching for changes |
|
185 | searching for changes | |
186 | no changes found |
|
186 | no changes found | |
187 | $ cat server/errors.txt |
|
187 | $ cat server/errors.txt | |
188 | #endif |
|
188 | #endif | |
189 | #if stream-bundle2 |
|
189 | #if stream-bundle2 | |
190 | $ hg clone --stream -U http://localhost:$HGPORT clone1 |
|
190 | $ hg clone --stream -U http://localhost:$HGPORT clone1 | |
191 | streaming all changes |
|
191 | streaming all changes | |
192 | 1030 files to transfer, 96.5 KB of data (no-zstd !) |
|
192 | 1030 files to transfer, 96.5 KB of data (no-zstd !) | |
193 | transferred 96.5 KB in * seconds (*/sec) (glob) (no-zstd !) |
|
193 | transferred 96.5 KB in * seconds (*/sec) (glob) (no-zstd !) | |
194 | 1030 files to transfer, 93.6 KB of data (zstd !) |
|
194 | 1030 files to transfer, 93.6 KB of data (zstd !) | |
195 | transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !) |
|
195 | transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !) | |
196 |
|
196 | |||
197 | $ ls -1 clone1/.hg/cache |
|
197 | $ ls -1 clone1/.hg/cache | |
198 | branch2-base |
|
198 | branch2-base | |
199 | branch2-immutable |
|
199 | branch2-immutable | |
200 | branch2-served |
|
200 | branch2-served | |
201 | branch2-served.hidden |
|
201 | branch2-served.hidden | |
202 | branch2-visible |
|
202 | branch2-visible | |
203 | branch2-visible-hidden |
|
203 | branch2-visible-hidden | |
204 | rbc-names-v1 |
|
204 | rbc-names-v1 | |
205 | rbc-revs-v1 |
|
205 | rbc-revs-v1 | |
206 | tags2 |
|
206 | tags2 | |
207 | tags2-served |
|
207 | tags2-served | |
208 | $ cat server/errors.txt |
|
208 | $ cat server/errors.txt | |
209 | #endif |
|
209 | #endif | |
210 |
|
210 | |||
211 | getbundle requests with stream=1 are uncompressed |
|
211 | getbundle requests with stream=1 are uncompressed | |
212 |
|
212 | |||
213 | $ 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" |
|
213 | $ 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" | |
214 | 200 Script output follows |
|
214 | 200 Script output follows | |
215 | content-type: application/mercurial-0.2 |
|
215 | content-type: application/mercurial-0.2 | |
216 |
|
216 | |||
217 |
|
217 | |||
|
218 | #if no-zstd no-rust | |||
218 | $ f --size --hex --bytes 256 body |
|
219 | $ f --size --hex --bytes 256 body | |
219 |
body: size=112262 |
|
220 | body: size=112262 | |
220 | body: size=109410 (zstd no-rust !) |
|
|||
221 | body: size=109431 (rust !) |
|
|||
222 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
|
221 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| | |
223 |
0010: 7f 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
|
222 | 0010: 7f 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| | |
224 |
0020: 05 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 39 38 |....Dbytecount98| |
|
223 | 0020: 05 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 39 38 |....Dbytecount98| | |
225 |
0030: 37 37 35 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |775filecount1030| |
|
224 | 0030: 37 37 35 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |775filecount1030| | |
226 | 0010: 99 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| (zstd no-rust !) |
|
225 | 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote| | |
227 | 0010: ae 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| (rust !) |
|
226 | 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%| | |
228 | 0020: 05 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 39 35 |....^bytecount95| (zstd no-rust !) |
|
227 | 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2| | |
229 | 0020: 05 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 39 35 |....sbytecount95| (rust !) |
|
228 | 0070: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 |Crevlogv1%2Cspar| | |
230 | 0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030| (zstd !) |
|
229 | 0080: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore| | |
|
230 | 0090: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.| | |||
|
231 | 00a0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................| | |||
|
232 | 00b0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................| | |||
|
233 | 00c0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i| | |||
|
234 | 00d0: d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 75 |..9............u| | |||
|
235 | 00e0: 30 73 08 42 64 61 74 61 2f 31 2e 69 00 03 00 01 |0s.Bdata/1.i....| | |||
|
236 | 00f0: 00 00 00 00 00 00 00 02 00 00 00 01 00 00 00 00 |................| | |||
|
237 | #endif | |||
|
238 | #if zstd no-rust | |||
|
239 | $ f --size --hex --bytes 256 body | |||
|
240 | body: size=109410 | |||
|
241 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| | |||
|
242 | 0010: 99 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| | |||
|
243 | 0020: 05 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 39 35 |....^bytecount95| | |||
|
244 | 0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030| | |||
231 | 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote| |
|
245 | 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote| | |
232 | 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%| |
|
246 | 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%| | |
233 | 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2| |
|
247 | 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2| | |
234 |
0070: 43 72 65 76 6c 6f 67 |
|
248 | 0070: 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 73 |Crevlog-compress| | |
235 | 0080: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore| (no-zstd !) |
|
249 | 0080: 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c 6f |ion-zstd%2Crevlo| | |
236 | 0090: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.| (no-zstd !) |
|
250 | 0090: 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 6c |gv1%2Csparserevl| | |
237 | 00a0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................| (no-zstd !) |
|
251 | 00a0: 6f 67 25 32 43 73 74 6f 72 65 00 00 80 00 73 08 |og%2Cstore....s.| | |
238 | 00b0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................| (no-zstd !) |
|
252 | 00b0: 42 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 00 |Bdata/0.i.......| | |
239 | 00c0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i| (no-zstd !) |
|
253 | 00c0: 00 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 |................| | |
240 | 00d0: d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 75 |..9............u| (no-zstd !) |
|
254 | 00d0: 01 ff ff ff ff ff ff ff ff 80 29 63 a0 49 d3 23 |..........)c.I.#| | |
241 | 00e0: 30 73 08 42 64 61 74 61 2f 31 2e 69 00 03 00 01 |0s.Bdata/1.i....| (no-zstd !) |
|
255 | 00e0: 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 00 |....Vg.g,i..9...| | |
242 |
00f0: 00 00 00 00 00 00 00 |
|
256 | 00f0: 00 00 00 00 00 00 00 00 00 75 30 73 08 42 64 61 |.........u0s.Bda| | |
243 | 0070: 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 73 |Crevlog-compress| (zstd no-rust !) |
|
257 | #endif | |
244 | 0070: 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 65 |Cpersistent-node| (rust !) |
|
258 | #if zstd rust | |
245 | 0080: 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c 6f |ion-zstd%2Crevlo| (zstd no-rust !) |
|
259 | $ f --size --hex --bytes 256 body | |
246 | 0080: 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f 6d |map%2Crevlog-com| (rust !) |
|
260 | body: size=109431 | |
247 | 0090: 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 6c |gv1%2Csparserevl| (zstd no-rust !) |
|
261 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| | |
248 | 0090: 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 43 |pression-zstd%2C| (rust !) |
|
262 | 0010: ae 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| | |
249 | 00a0: 6f 67 25 32 43 73 74 6f 72 65 00 00 80 00 73 08 |og%2Cstore....s.| (zstd no-rust !) |
|
263 | 0020: 05 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 39 35 |....sbytecount95| | |
250 | 00a0: 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 73 |revlogv1%2Cspars| (rust !) |
|
264 | 0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030| | |
251 | 00b0: 42 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 00 |Bdata/0.i.......| (zstd no-rust !) |
|
265 | 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote| | |
252 | 00b0: 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 00 |erevlog%2Cstore.| (rust !) |
|
266 | 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%| | |
253 | 00c0: 00 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 |................| (zstd no-rust !) |
|
267 | 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2| | |
254 | 00c0: 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 03 |...s.Bdata/0.i..| (rust !) |
|
268 | 0070: 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 65 |Cpersistent-node| | |
255 | 00d0: 01 ff ff ff ff ff ff ff ff 80 29 63 a0 49 d3 23 |..........)c.I.#| (zstd no-rust !) |
|
269 | 0080: 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f 6d |map%2Crevlog-com| | |
256 | 00d0: 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 00 |................| (rust !) |
|
270 | 0090: 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 43 |pression-zstd%2C| | |
257 | 00e0: 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 00 |....Vg.g,i..9...| (zstd no-rust !) |
|
271 | 00a0: 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 73 |revlogv1%2Cspars| | |
258 | 00e0: 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 29 |...............)| (rust !) |
|
272 | 00b0: 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 00 |erevlog%2Cstore.| | |
259 | 00f0: 00 00 00 00 00 00 00 00 00 75 30 73 08 42 64 61 |.........u0s.Bda| (zstd no-rust !) |
|
273 | 00c0: 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 03 |...s.Bdata/0.i..| | |
260 | 00f0: 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 d1 |c.I.#....Vg.g,i.| (rust !) |
|
274 | 00d0: 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 00 |................| | |
|
275 | 00e0: 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 29 |...............)| | |||
|
276 | 00f0: 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 d1 |c.I.#....Vg.g,i.| | |||
|
277 | #endif | |||
261 |
|
278 | |||
262 | --uncompressed is an alias to --stream |
|
279 | --uncompressed is an alias to --stream | |
263 |
|
280 | |||
264 | #if stream-legacy |
|
281 | #if stream-legacy | |
265 | $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed |
|
282 | $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed | |
266 | streaming all changes |
|
283 | streaming all changes | |
267 | 1027 files to transfer, 96.3 KB of data (no-zstd !) |
|
284 | 1027 files to transfer, 96.3 KB of data (no-zstd !) | |
268 | transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !) |
|
285 | transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !) | |
269 | 1027 files to transfer, 93.5 KB of data (zstd !) |
|
286 | 1027 files to transfer, 93.5 KB of data (zstd !) | |
270 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) |
|
287 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) | |
271 | searching for changes |
|
288 | searching for changes | |
272 | no changes found |
|
289 | no changes found | |
273 | #endif |
|
290 | #endif | |
274 | #if stream-bundle2 |
|
291 | #if stream-bundle2 | |
275 | $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed |
|
292 | $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed | |
276 | streaming all changes |
|
293 | streaming all changes | |
277 | 1030 files to transfer, 96.5 KB of data (no-zstd !) |
|
294 | 1030 files to transfer, 96.5 KB of data (no-zstd !) | |
278 | transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
295 | transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !) | |
279 | 1030 files to transfer, 93.6 KB of data (zstd !) |
|
296 | 1030 files to transfer, 93.6 KB of data (zstd !) | |
280 | transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !) |
|
297 | transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !) | |
281 | #endif |
|
298 | #endif | |
282 |
|
299 | |||
283 | Clone with background file closing enabled |
|
300 | Clone with background file closing enabled | |
284 |
|
301 | |||
285 | #if stream-legacy |
|
302 | #if stream-legacy | |
286 | $ hg --debug --config worker.backgroundclose=true --config worker.backgroundcloseminfilecount=1 clone --stream -U http://localhost:$HGPORT clone-background | grep -v adding |
|
303 | $ hg --debug --config worker.backgroundclose=true --config worker.backgroundcloseminfilecount=1 clone --stream -U http://localhost:$HGPORT clone-background | grep -v adding | |
287 | using http://localhost:$HGPORT/ |
|
304 | using http://localhost:$HGPORT/ | |
288 | sending capabilities command |
|
305 | sending capabilities command | |
289 | sending branchmap command |
|
306 | sending branchmap command | |
290 | streaming all changes |
|
307 | streaming all changes | |
291 | sending stream_out command |
|
308 | sending stream_out command | |
292 | 1027 files to transfer, 96.3 KB of data (no-zstd !) |
|
309 | 1027 files to transfer, 96.3 KB of data (no-zstd !) | |
293 | 1027 files to transfer, 93.5 KB of data (zstd !) |
|
310 | 1027 files to transfer, 93.5 KB of data (zstd !) | |
294 | starting 4 threads for background file closing |
|
311 | starting 4 threads for background file closing | |
295 | updating the branch cache |
|
312 | updating the branch cache | |
296 | transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !) |
|
313 | transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !) | |
297 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) |
|
314 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) | |
298 | query 1; heads |
|
315 | query 1; heads | |
299 | sending batch command |
|
316 | sending batch command | |
300 | searching for changes |
|
317 | searching for changes | |
301 | all remote heads known locally |
|
318 | all remote heads known locally | |
302 | no changes found |
|
319 | no changes found | |
303 | sending getbundle command |
|
320 | sending getbundle command | |
304 | bundle2-input-bundle: with-transaction |
|
321 | bundle2-input-bundle: with-transaction | |
305 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
|
322 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported | |
306 | bundle2-input-part: "phase-heads" supported |
|
323 | bundle2-input-part: "phase-heads" supported | |
307 | bundle2-input-part: total payload size 24 |
|
324 | bundle2-input-part: total payload size 24 | |
308 | bundle2-input-bundle: 2 parts total |
|
325 | bundle2-input-bundle: 2 parts total | |
309 | checking for updated bookmarks |
|
326 | checking for updated bookmarks | |
310 | updating the branch cache |
|
327 | updating the branch cache | |
311 | (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
|
328 | (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) | |
312 | #endif |
|
329 | #endif | |
313 | #if stream-bundle2 |
|
330 | #if stream-bundle2 | |
314 | $ hg --debug --config worker.backgroundclose=true --config worker.backgroundcloseminfilecount=1 clone --stream -U http://localhost:$HGPORT clone-background | grep -v adding |
|
331 | $ hg --debug --config worker.backgroundclose=true --config worker.backgroundcloseminfilecount=1 clone --stream -U http://localhost:$HGPORT clone-background | grep -v adding | |
315 | using http://localhost:$HGPORT/ |
|
332 | using http://localhost:$HGPORT/ | |
316 | sending capabilities command |
|
333 | sending capabilities command | |
317 | query 1; heads |
|
334 | query 1; heads | |
318 | sending batch command |
|
335 | sending batch command | |
319 | streaming all changes |
|
336 | streaming all changes | |
320 | sending getbundle command |
|
337 | sending getbundle command | |
321 | bundle2-input-bundle: with-transaction |
|
338 | bundle2-input-bundle: with-transaction | |
322 | bundle2-input-part: "stream2" (params: 3 mandatory) supported |
|
339 | bundle2-input-part: "stream2" (params: 3 mandatory) supported | |
323 | applying stream bundle |
|
340 | applying stream bundle | |
324 | 1030 files to transfer, 96.5 KB of data (no-zstd !) |
|
341 | 1030 files to transfer, 96.5 KB of data (no-zstd !) | |
325 | 1030 files to transfer, 93.6 KB of data (zstd !) |
|
342 | 1030 files to transfer, 93.6 KB of data (zstd !) | |
326 | starting 4 threads for background file closing |
|
343 | starting 4 threads for background file closing | |
327 | starting 4 threads for background file closing |
|
344 | starting 4 threads for background file closing | |
328 | updating the branch cache |
|
345 | updating the branch cache | |
329 | transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
346 | transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !) | |
330 | bundle2-input-part: total payload size 112094 (no-zstd !) |
|
347 | bundle2-input-part: total payload size 112094 (no-zstd !) | |
331 | transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !) |
|
348 | transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !) | |
332 | bundle2-input-part: total payload size 109216 (zstd !) |
|
349 | bundle2-input-part: total payload size 109216 (zstd !) | |
333 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
|
350 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported | |
334 | bundle2-input-bundle: 2 parts total |
|
351 | bundle2-input-bundle: 2 parts total | |
335 | checking for updated bookmarks |
|
352 | checking for updated bookmarks | |
336 | updating the branch cache |
|
353 | updating the branch cache | |
337 | (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) |
|
354 | (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) | |
338 | #endif |
|
355 | #endif | |
339 |
|
356 | |||
340 | Cannot stream clone when there are secret changesets |
|
357 | Cannot stream clone when there are secret changesets | |
341 |
|
358 | |||
342 | $ hg -R server phase --force --secret -r tip |
|
359 | $ hg -R server phase --force --secret -r tip | |
343 | $ hg clone --stream -U http://localhost:$HGPORT secret-denied |
|
360 | $ hg clone --stream -U http://localhost:$HGPORT secret-denied | |
344 | warning: stream clone requested but server has them disabled |
|
361 | warning: stream clone requested but server has them disabled | |
345 | requesting all changes |
|
362 | requesting all changes | |
346 | adding changesets |
|
363 | adding changesets | |
347 | adding manifests |
|
364 | adding manifests | |
348 | adding file changes |
|
365 | adding file changes | |
349 | added 1 changesets with 1 changes to 1 files |
|
366 | added 1 changesets with 1 changes to 1 files | |
350 | new changesets 96ee1d7354c4 |
|
367 | new changesets 96ee1d7354c4 | |
351 |
|
368 | |||
352 | $ killdaemons.py |
|
369 | $ killdaemons.py | |
353 |
|
370 | |||
354 | Streaming of secrets can be overridden by server config |
|
371 | Streaming of secrets can be overridden by server config | |
355 |
|
372 | |||
356 | $ cd server |
|
373 | $ cd server | |
357 | $ hg serve --config server.uncompressedallowsecret=true -p $HGPORT -d --pid-file=hg.pid |
|
374 | $ hg serve --config server.uncompressedallowsecret=true -p $HGPORT -d --pid-file=hg.pid | |
358 | $ cat hg.pid > $DAEMON_PIDS |
|
375 | $ cat hg.pid > $DAEMON_PIDS | |
359 | $ cd .. |
|
376 | $ cd .. | |
360 |
|
377 | |||
361 | #if stream-legacy |
|
378 | #if stream-legacy | |
362 | $ hg clone --stream -U http://localhost:$HGPORT secret-allowed |
|
379 | $ hg clone --stream -U http://localhost:$HGPORT secret-allowed | |
363 | streaming all changes |
|
380 | streaming all changes | |
364 | 1027 files to transfer, 96.3 KB of data (no-zstd !) |
|
381 | 1027 files to transfer, 96.3 KB of data (no-zstd !) | |
365 | transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !) |
|
382 | transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !) | |
366 | 1027 files to transfer, 93.5 KB of data (zstd !) |
|
383 | 1027 files to transfer, 93.5 KB of data (zstd !) | |
367 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) |
|
384 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) | |
368 | searching for changes |
|
385 | searching for changes | |
369 | no changes found |
|
386 | no changes found | |
370 | #endif |
|
387 | #endif | |
371 | #if stream-bundle2 |
|
388 | #if stream-bundle2 | |
372 | $ hg clone --stream -U http://localhost:$HGPORT secret-allowed |
|
389 | $ hg clone --stream -U http://localhost:$HGPORT secret-allowed | |
373 | streaming all changes |
|
390 | streaming all changes | |
374 | 1030 files to transfer, 96.5 KB of data (no-zstd !) |
|
391 | 1030 files to transfer, 96.5 KB of data (no-zstd !) | |
375 | transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
392 | transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !) | |
376 | 1030 files to transfer, 93.6 KB of data (zstd !) |
|
393 | 1030 files to transfer, 93.6 KB of data (zstd !) | |
377 | transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !) |
|
394 | transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !) | |
378 | #endif |
|
395 | #endif | |
379 |
|
396 | |||
380 | $ killdaemons.py |
|
397 | $ killdaemons.py | |
381 |
|
398 | |||
382 | Verify interaction between preferuncompressed and secret presence |
|
399 | Verify interaction between preferuncompressed and secret presence | |
383 |
|
400 | |||
384 | $ cd server |
|
401 | $ cd server | |
385 | $ hg serve --config server.preferuncompressed=true -p $HGPORT -d --pid-file=hg.pid |
|
402 | $ hg serve --config server.preferuncompressed=true -p $HGPORT -d --pid-file=hg.pid | |
386 | $ cat hg.pid > $DAEMON_PIDS |
|
403 | $ cat hg.pid > $DAEMON_PIDS | |
387 | $ cd .. |
|
404 | $ cd .. | |
388 |
|
405 | |||
389 | $ hg clone -U http://localhost:$HGPORT preferuncompressed-secret |
|
406 | $ hg clone -U http://localhost:$HGPORT preferuncompressed-secret | |
390 | requesting all changes |
|
407 | requesting all changes | |
391 | adding changesets |
|
408 | adding changesets | |
392 | adding manifests |
|
409 | adding manifests | |
393 | adding file changes |
|
410 | adding file changes | |
394 | added 1 changesets with 1 changes to 1 files |
|
411 | added 1 changesets with 1 changes to 1 files | |
395 | new changesets 96ee1d7354c4 |
|
412 | new changesets 96ee1d7354c4 | |
396 |
|
413 | |||
397 | $ killdaemons.py |
|
414 | $ killdaemons.py | |
398 |
|
415 | |||
399 | Clone not allowed when full bundles disabled and can't serve secrets |
|
416 | Clone not allowed when full bundles disabled and can't serve secrets | |
400 |
|
417 | |||
401 | $ cd server |
|
418 | $ cd server | |
402 | $ hg serve --config server.disablefullbundle=true -p $HGPORT -d --pid-file=hg.pid |
|
419 | $ hg serve --config server.disablefullbundle=true -p $HGPORT -d --pid-file=hg.pid | |
403 | $ cat hg.pid > $DAEMON_PIDS |
|
420 | $ cat hg.pid > $DAEMON_PIDS | |
404 | $ cd .. |
|
421 | $ cd .. | |
405 |
|
422 | |||
406 | $ hg clone --stream http://localhost:$HGPORT secret-full-disabled |
|
423 | $ hg clone --stream http://localhost:$HGPORT secret-full-disabled | |
407 | warning: stream clone requested but server has them disabled |
|
424 | warning: stream clone requested but server has them disabled | |
408 | requesting all changes |
|
425 | requesting all changes | |
409 | remote: abort: server has pull-based clones disabled |
|
426 | remote: abort: server has pull-based clones disabled | |
410 | abort: pull failed on remote |
|
427 | abort: pull failed on remote | |
411 | (remove --pull if specified or upgrade Mercurial) |
|
428 | (remove --pull if specified or upgrade Mercurial) | |
412 | [100] |
|
429 | [100] | |
413 |
|
430 | |||
414 | Local stream clone with secrets involved |
|
431 | Local stream clone with secrets involved | |
415 | (This is just a test over behavior: if you have access to the repo's files, |
|
432 | (This is just a test over behavior: if you have access to the repo's files, | |
416 | there is no security so it isn't important to prevent a clone here.) |
|
433 | there is no security so it isn't important to prevent a clone here.) | |
417 |
|
434 | |||
418 | $ hg clone -U --stream server local-secret |
|
435 | $ hg clone -U --stream server local-secret | |
419 | warning: stream clone requested but server has them disabled |
|
436 | warning: stream clone requested but server has them disabled | |
420 | requesting all changes |
|
437 | requesting all changes | |
421 | adding changesets |
|
438 | adding changesets | |
422 | adding manifests |
|
439 | adding manifests | |
423 | adding file changes |
|
440 | adding file changes | |
424 | added 1 changesets with 1 changes to 1 files |
|
441 | added 1 changesets with 1 changes to 1 files | |
425 | new changesets 96ee1d7354c4 |
|
442 | new changesets 96ee1d7354c4 | |
426 |
|
443 | |||
427 | Stream clone while repo is changing: |
|
444 | Stream clone while repo is changing: | |
428 |
|
445 | |||
429 | $ mkdir changing |
|
446 | $ mkdir changing | |
430 | $ cd changing |
|
447 | $ cd changing | |
431 |
|
448 | |||
432 | extension for delaying the server process so we reliably can modify the repo |
|
449 | extension for delaying the server process so we reliably can modify the repo | |
433 | while cloning |
|
450 | while cloning | |
434 |
|
451 | |||
435 | $ cat > stream_steps.py <<EOF |
|
452 | $ cat > stream_steps.py <<EOF | |
436 | > import os |
|
453 | > import os | |
437 | > import sys |
|
454 | > import sys | |
438 | > from mercurial import ( |
|
455 | > from mercurial import ( | |
439 | > encoding, |
|
456 | > encoding, | |
440 | > extensions, |
|
457 | > extensions, | |
441 | > streamclone, |
|
458 | > streamclone, | |
442 | > testing, |
|
459 | > testing, | |
443 | > ) |
|
460 | > ) | |
444 | > WALKED_FILE_1 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_1'] |
|
461 | > WALKED_FILE_1 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_1'] | |
445 | > WALKED_FILE_2 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_2'] |
|
462 | > WALKED_FILE_2 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_2'] | |
446 | > |
|
463 | > | |
447 | > def _test_sync_point_walk_1(orig, repo): |
|
464 | > def _test_sync_point_walk_1(orig, repo): | |
448 | > testing.write_file(WALKED_FILE_1) |
|
465 | > testing.write_file(WALKED_FILE_1) | |
449 | > |
|
466 | > | |
450 | > def _test_sync_point_walk_2(orig, repo): |
|
467 | > def _test_sync_point_walk_2(orig, repo): | |
451 | > assert repo._currentlock(repo._lockref) is None |
|
468 | > assert repo._currentlock(repo._lockref) is None | |
452 | > testing.wait_file(WALKED_FILE_2) |
|
469 | > testing.wait_file(WALKED_FILE_2) | |
453 | > |
|
470 | > | |
454 | > extensions.wrapfunction( |
|
471 | > extensions.wrapfunction( | |
455 | > streamclone, |
|
472 | > streamclone, | |
456 | > '_test_sync_point_walk_1', |
|
473 | > '_test_sync_point_walk_1', | |
457 | > _test_sync_point_walk_1 |
|
474 | > _test_sync_point_walk_1 | |
458 | > ) |
|
475 | > ) | |
459 | > extensions.wrapfunction( |
|
476 | > extensions.wrapfunction( | |
460 | > streamclone, |
|
477 | > streamclone, | |
461 | > '_test_sync_point_walk_2', |
|
478 | > '_test_sync_point_walk_2', | |
462 | > _test_sync_point_walk_2 |
|
479 | > _test_sync_point_walk_2 | |
463 | > ) |
|
480 | > ) | |
464 | > EOF |
|
481 | > EOF | |
465 |
|
482 | |||
466 | prepare repo with small and big file to cover both code paths in emitrevlogdata |
|
483 | prepare repo with small and big file to cover both code paths in emitrevlogdata | |
467 |
|
484 | |||
468 | $ hg init repo |
|
485 | $ hg init repo | |
469 | $ touch repo/f1 |
|
486 | $ touch repo/f1 | |
470 | $ $TESTDIR/seq.py 50000 > repo/f2 |
|
487 | $ $TESTDIR/seq.py 50000 > repo/f2 | |
471 | $ hg -R repo ci -Aqm "0" |
|
488 | $ hg -R repo ci -Aqm "0" | |
472 | $ HG_TEST_STREAM_WALKED_FILE_1="$TESTTMP/sync_file_walked_1" |
|
489 | $ HG_TEST_STREAM_WALKED_FILE_1="$TESTTMP/sync_file_walked_1" | |
473 | $ export HG_TEST_STREAM_WALKED_FILE_1 |
|
490 | $ export HG_TEST_STREAM_WALKED_FILE_1 | |
474 | $ HG_TEST_STREAM_WALKED_FILE_2="$TESTTMP/sync_file_walked_2" |
|
491 | $ HG_TEST_STREAM_WALKED_FILE_2="$TESTTMP/sync_file_walked_2" | |
475 | $ export HG_TEST_STREAM_WALKED_FILE_2 |
|
492 | $ export HG_TEST_STREAM_WALKED_FILE_2 | |
476 | $ HG_TEST_STREAM_WALKED_FILE_3="$TESTTMP/sync_file_walked_3" |
|
493 | $ HG_TEST_STREAM_WALKED_FILE_3="$TESTTMP/sync_file_walked_3" | |
477 | $ export HG_TEST_STREAM_WALKED_FILE_3 |
|
494 | $ export HG_TEST_STREAM_WALKED_FILE_3 | |
478 | # $ cat << EOF >> $HGRCPATH |
|
495 | # $ cat << EOF >> $HGRCPATH | |
479 | # > [hooks] |
|
496 | # > [hooks] | |
480 | # > pre-clone=rm -f "$TESTTMP/sync_file_walked_*" |
|
497 | # > pre-clone=rm -f "$TESTTMP/sync_file_walked_*" | |
481 | # > EOF |
|
498 | # > EOF | |
482 | $ 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" |
|
499 | $ 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" | |
483 | $ cat hg.pid >> $DAEMON_PIDS |
|
500 | $ cat hg.pid >> $DAEMON_PIDS | |
484 |
|
501 | |||
485 | clone while modifying the repo between stating file with write lock and |
|
502 | clone while modifying the repo between stating file with write lock and | |
486 | actually serving file content |
|
503 | actually serving file content | |
487 |
|
504 | |||
488 | $ (hg clone -q --stream -U http://localhost:$HGPORT1 clone; touch "$HG_TEST_STREAM_WALKED_FILE_3") & |
|
505 | $ (hg clone -q --stream -U http://localhost:$HGPORT1 clone; touch "$HG_TEST_STREAM_WALKED_FILE_3") & | |
489 | $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_1 |
|
506 | $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_1 | |
490 | $ echo >> repo/f1 |
|
507 | $ echo >> repo/f1 | |
491 | $ echo >> repo/f2 |
|
508 | $ echo >> repo/f2 | |
492 | $ hg -R repo ci -m "1" --config ui.timeout.warn=-1 |
|
509 | $ hg -R repo ci -m "1" --config ui.timeout.warn=-1 | |
493 | $ touch $HG_TEST_STREAM_WALKED_FILE_2 |
|
510 | $ touch $HG_TEST_STREAM_WALKED_FILE_2 | |
494 | $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_3 |
|
511 | $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_3 | |
495 | $ hg -R clone id |
|
512 | $ hg -R clone id | |
496 | 000000000000 |
|
513 | 000000000000 | |
497 | $ cat errors.log |
|
514 | $ cat errors.log | |
498 | $ cd .. |
|
515 | $ cd .. | |
499 |
|
516 | |||
500 | Stream repository with bookmarks |
|
517 | Stream repository with bookmarks | |
501 | -------------------------------- |
|
518 | -------------------------------- | |
502 |
|
519 | |||
503 | (revert introduction of secret changeset) |
|
520 | (revert introduction of secret changeset) | |
504 |
|
521 | |||
505 | $ hg -R server phase --draft 'secret()' |
|
522 | $ hg -R server phase --draft 'secret()' | |
506 |
|
523 | |||
507 | add a bookmark |
|
524 | add a bookmark | |
508 |
|
525 | |||
509 | $ hg -R server bookmark -r tip some-bookmark |
|
526 | $ hg -R server bookmark -r tip some-bookmark | |
510 |
|
527 | |||
511 | clone it |
|
528 | clone it | |
512 |
|
529 | |||
513 | #if stream-legacy |
|
530 | #if stream-legacy | |
514 | $ hg clone --stream http://localhost:$HGPORT with-bookmarks |
|
531 | $ hg clone --stream http://localhost:$HGPORT with-bookmarks | |
515 | streaming all changes |
|
532 | streaming all changes | |
516 | 1027 files to transfer, 96.3 KB of data (no-zstd !) |
|
533 | 1027 files to transfer, 96.3 KB of data (no-zstd !) | |
517 | transferred 96.3 KB in * seconds (*) (glob) (no-zstd !) |
|
534 | transferred 96.3 KB in * seconds (*) (glob) (no-zstd !) | |
518 | 1027 files to transfer, 93.5 KB of data (zstd !) |
|
535 | 1027 files to transfer, 93.5 KB of data (zstd !) | |
519 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) |
|
536 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) | |
520 | searching for changes |
|
537 | searching for changes | |
521 | no changes found |
|
538 | no changes found | |
522 | updating to branch default |
|
539 | updating to branch default | |
523 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
540 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
524 | #endif |
|
541 | #endif | |
525 | #if stream-bundle2 |
|
542 | #if stream-bundle2 | |
526 | $ hg clone --stream http://localhost:$HGPORT with-bookmarks |
|
543 | $ hg clone --stream http://localhost:$HGPORT with-bookmarks | |
527 | streaming all changes |
|
544 | streaming all changes | |
528 | 1033 files to transfer, 96.6 KB of data (no-zstd !) |
|
545 | 1033 files to transfer, 96.6 KB of data (no-zstd !) | |
529 | transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
546 | transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !) | |
530 | 1033 files to transfer, 93.8 KB of data (zstd !) |
|
547 | 1033 files to transfer, 93.8 KB of data (zstd !) | |
531 | transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !) |
|
548 | transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !) | |
532 | updating to branch default |
|
549 | updating to branch default | |
533 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
550 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
534 | #endif |
|
551 | #endif | |
535 | $ hg -R with-bookmarks bookmarks |
|
552 | $ hg -R with-bookmarks bookmarks | |
536 | some-bookmark 1:c17445101a72 |
|
553 | some-bookmark 1:c17445101a72 | |
537 |
|
554 | |||
538 | Stream repository with phases |
|
555 | Stream repository with phases | |
539 | ----------------------------- |
|
556 | ----------------------------- | |
540 |
|
557 | |||
541 | Clone as publishing |
|
558 | Clone as publishing | |
542 |
|
559 | |||
543 | $ hg -R server phase -r 'all()' |
|
560 | $ hg -R server phase -r 'all()' | |
544 | 0: draft |
|
561 | 0: draft | |
545 | 1: draft |
|
562 | 1: draft | |
546 |
|
563 | |||
547 | #if stream-legacy |
|
564 | #if stream-legacy | |
548 | $ hg clone --stream http://localhost:$HGPORT phase-publish |
|
565 | $ hg clone --stream http://localhost:$HGPORT phase-publish | |
549 | streaming all changes |
|
566 | streaming all changes | |
550 | 1027 files to transfer, 96.3 KB of data (no-zstd !) |
|
567 | 1027 files to transfer, 96.3 KB of data (no-zstd !) | |
551 | transferred 96.3 KB in * seconds (*) (glob) (no-zstd !) |
|
568 | transferred 96.3 KB in * seconds (*) (glob) (no-zstd !) | |
552 | 1027 files to transfer, 93.5 KB of data (zstd !) |
|
569 | 1027 files to transfer, 93.5 KB of data (zstd !) | |
553 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) |
|
570 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) | |
554 | searching for changes |
|
571 | searching for changes | |
555 | no changes found |
|
572 | no changes found | |
556 | updating to branch default |
|
573 | updating to branch default | |
557 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
574 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
558 | #endif |
|
575 | #endif | |
559 | #if stream-bundle2 |
|
576 | #if stream-bundle2 | |
560 | $ hg clone --stream http://localhost:$HGPORT phase-publish |
|
577 | $ hg clone --stream http://localhost:$HGPORT phase-publish | |
561 | streaming all changes |
|
578 | streaming all changes | |
562 | 1033 files to transfer, 96.6 KB of data (no-zstd !) |
|
579 | 1033 files to transfer, 96.6 KB of data (no-zstd !) | |
563 | transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
580 | transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !) | |
564 | 1033 files to transfer, 93.8 KB of data (zstd !) |
|
581 | 1033 files to transfer, 93.8 KB of data (zstd !) | |
565 | transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !) |
|
582 | transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !) | |
566 | updating to branch default |
|
583 | updating to branch default | |
567 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
584 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
568 | #endif |
|
585 | #endif | |
569 | $ hg -R phase-publish phase -r 'all()' |
|
586 | $ hg -R phase-publish phase -r 'all()' | |
570 | 0: public |
|
587 | 0: public | |
571 | 1: public |
|
588 | 1: public | |
572 |
|
589 | |||
573 | Clone as non publishing |
|
590 | Clone as non publishing | |
574 |
|
591 | |||
575 | $ cat << EOF >> server/.hg/hgrc |
|
592 | $ cat << EOF >> server/.hg/hgrc | |
576 | > [phases] |
|
593 | > [phases] | |
577 | > publish = False |
|
594 | > publish = False | |
578 | > EOF |
|
595 | > EOF | |
579 | $ killdaemons.py |
|
596 | $ killdaemons.py | |
580 | $ hg -R server serve -p $HGPORT -d --pid-file=hg.pid |
|
597 | $ hg -R server serve -p $HGPORT -d --pid-file=hg.pid | |
581 | $ cat hg.pid > $DAEMON_PIDS |
|
598 | $ cat hg.pid > $DAEMON_PIDS | |
582 |
|
599 | |||
583 | #if stream-legacy |
|
600 | #if stream-legacy | |
584 |
|
601 | |||
585 | With v1 of the stream protocol, changeset are always cloned as public. It make |
|
602 | With v1 of the stream protocol, changeset are always cloned as public. It make | |
586 | stream v1 unsuitable for non-publishing repository. |
|
603 | stream v1 unsuitable for non-publishing repository. | |
587 |
|
604 | |||
588 | $ hg clone --stream http://localhost:$HGPORT phase-no-publish |
|
605 | $ hg clone --stream http://localhost:$HGPORT phase-no-publish | |
589 | streaming all changes |
|
606 | streaming all changes | |
590 | 1027 files to transfer, 96.3 KB of data (no-zstd !) |
|
607 | 1027 files to transfer, 96.3 KB of data (no-zstd !) | |
591 | transferred 96.3 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
608 | transferred 96.3 KB in * seconds (* */sec) (glob) (no-zstd !) | |
592 | 1027 files to transfer, 93.5 KB of data (zstd !) |
|
609 | 1027 files to transfer, 93.5 KB of data (zstd !) | |
593 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) |
|
610 | transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !) | |
594 | searching for changes |
|
611 | searching for changes | |
595 | no changes found |
|
612 | no changes found | |
596 | updating to branch default |
|
613 | updating to branch default | |
597 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
614 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
598 | $ hg -R phase-no-publish phase -r 'all()' |
|
615 | $ hg -R phase-no-publish phase -r 'all()' | |
599 | 0: public |
|
616 | 0: public | |
600 | 1: public |
|
617 | 1: public | |
601 | #endif |
|
618 | #endif | |
602 | #if stream-bundle2 |
|
619 | #if stream-bundle2 | |
603 | $ hg clone --stream http://localhost:$HGPORT phase-no-publish |
|
620 | $ hg clone --stream http://localhost:$HGPORT phase-no-publish | |
604 | streaming all changes |
|
621 | streaming all changes | |
605 | 1034 files to transfer, 96.7 KB of data (no-zstd !) |
|
622 | 1034 files to transfer, 96.7 KB of data (no-zstd !) | |
606 | transferred 96.7 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
623 | transferred 96.7 KB in * seconds (* */sec) (glob) (no-zstd !) | |
607 | 1034 files to transfer, 93.9 KB of data (zstd !) |
|
624 | 1034 files to transfer, 93.9 KB of data (zstd !) | |
608 | transferred 93.9 KB in * seconds (* */sec) (glob) (zstd !) |
|
625 | transferred 93.9 KB in * seconds (* */sec) (glob) (zstd !) | |
609 | updating to branch default |
|
626 | updating to branch default | |
610 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
627 | 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
611 | $ hg -R phase-no-publish phase -r 'all()' |
|
628 | $ hg -R phase-no-publish phase -r 'all()' | |
612 | 0: draft |
|
629 | 0: draft | |
613 | 1: draft |
|
630 | 1: draft | |
614 | #endif |
|
631 | #endif | |
615 |
|
632 | |||
616 | $ killdaemons.py |
|
633 | $ killdaemons.py | |
617 |
|
634 | |||
618 | #if stream-legacy |
|
635 | #if stream-legacy | |
619 |
|
636 | |||
620 | With v1 of the stream protocol, changeset are always cloned as public. There's |
|
637 | With v1 of the stream protocol, changeset are always cloned as public. There's | |
621 | no obsolescence markers exchange in stream v1. |
|
638 | no obsolescence markers exchange in stream v1. | |
622 |
|
639 | |||
623 | #endif |
|
640 | #endif | |
624 | #if stream-bundle2 |
|
641 | #if stream-bundle2 | |
625 |
|
642 | |||
626 | Stream repository with obsolescence |
|
643 | Stream repository with obsolescence | |
627 | ----------------------------------- |
|
644 | ----------------------------------- | |
628 |
|
645 | |||
629 | Clone non-publishing with obsolescence |
|
646 | Clone non-publishing with obsolescence | |
630 |
|
647 | |||
631 | $ cat >> $HGRCPATH << EOF |
|
648 | $ cat >> $HGRCPATH << EOF | |
632 | > [experimental] |
|
649 | > [experimental] | |
633 | > evolution=all |
|
650 | > evolution=all | |
634 | > EOF |
|
651 | > EOF | |
635 |
|
652 | |||
636 | $ cd server |
|
653 | $ cd server | |
637 | $ echo foo > foo |
|
654 | $ echo foo > foo | |
638 | $ hg -q commit -m 'about to be pruned' |
|
655 | $ hg -q commit -m 'about to be pruned' | |
639 | $ hg debugobsolete `hg log -r . -T '{node}'` -d '0 0' -u test --record-parents |
|
656 | $ hg debugobsolete `hg log -r . -T '{node}'` -d '0 0' -u test --record-parents | |
640 | 1 new obsolescence markers |
|
657 | 1 new obsolescence markers | |
641 | obsoleted 1 changesets |
|
658 | obsoleted 1 changesets | |
642 | $ hg up null -q |
|
659 | $ hg up null -q | |
643 | $ hg log -T '{rev}: {phase}\n' |
|
660 | $ hg log -T '{rev}: {phase}\n' | |
644 | 1: draft |
|
661 | 1: draft | |
645 | 0: draft |
|
662 | 0: draft | |
646 | $ hg serve -p $HGPORT -d --pid-file=hg.pid |
|
663 | $ hg serve -p $HGPORT -d --pid-file=hg.pid | |
647 | $ cat hg.pid > $DAEMON_PIDS |
|
664 | $ cat hg.pid > $DAEMON_PIDS | |
648 | $ cd .. |
|
665 | $ cd .. | |
649 |
|
666 | |||
650 | $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence |
|
667 | $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence | |
651 | streaming all changes |
|
668 | streaming all changes | |
652 | 1035 files to transfer, 97.1 KB of data (no-zstd !) |
|
669 | 1035 files to transfer, 97.1 KB of data (no-zstd !) | |
653 | transferred 97.1 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
670 | transferred 97.1 KB in * seconds (* */sec) (glob) (no-zstd !) | |
654 | 1035 files to transfer, 94.3 KB of data (zstd !) |
|
671 | 1035 files to transfer, 94.3 KB of data (zstd !) | |
655 | transferred 94.3 KB in * seconds (* */sec) (glob) (zstd !) |
|
672 | transferred 94.3 KB in * seconds (* */sec) (glob) (zstd !) | |
656 | $ hg -R with-obsolescence log -T '{rev}: {phase}\n' |
|
673 | $ hg -R with-obsolescence log -T '{rev}: {phase}\n' | |
657 | 1: draft |
|
674 | 1: draft | |
658 | 0: draft |
|
675 | 0: draft | |
659 | $ hg debugobsolete -R with-obsolescence |
|
676 | $ hg debugobsolete -R with-obsolescence | |
660 | 50382b884f66690b7045cac93a540cba4d4c906f 0 {c17445101a72edac06facd130d14808dfbd5c7c2} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
677 | 50382b884f66690b7045cac93a540cba4d4c906f 0 {c17445101a72edac06facd130d14808dfbd5c7c2} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
661 |
|
678 | |||
662 | $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution |
|
679 | $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution | |
663 | streaming all changes |
|
680 | streaming all changes | |
664 | remote: abort: server has obsolescence markers, but client cannot receive them via stream clone |
|
681 | remote: abort: server has obsolescence markers, but client cannot receive them via stream clone | |
665 | abort: pull failed on remote |
|
682 | abort: pull failed on remote | |
666 | [100] |
|
683 | [100] | |
667 |
|
684 | |||
668 | $ killdaemons.py |
|
685 | $ killdaemons.py | |
669 |
|
686 | |||
670 | #endif |
|
687 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now