Show More
@@ -108,6 +108,7 b' def supporteddestrequirements(repo):' | |||||
108 | requirements.SIDEDATA_REQUIREMENT, |
|
108 | requirements.SIDEDATA_REQUIREMENT, | |
109 | requirements.COPIESSDC_REQUIREMENT, |
|
109 | requirements.COPIESSDC_REQUIREMENT, | |
110 | requirements.NODEMAP_REQUIREMENT, |
|
110 | requirements.NODEMAP_REQUIREMENT, | |
|
111 | requirements.SHARESAFE_REQUIREMENT, | |||
111 | } |
|
112 | } | |
112 | for name in compression.compengines: |
|
113 | for name in compression.compengines: | |
113 | engine = compression.compengines[name] |
|
114 | engine = compression.compengines[name] |
@@ -167,6 +167,38 b' Test that if share source config is untr' | |||||
167 | $ hg showconfig hooks --config extensions.untrusted=$TESTTMP/untrusted.py |
|
167 | $ hg showconfig hooks --config extensions.untrusted=$TESTTMP/untrusted.py | |
168 | [1] |
|
168 | [1] | |
169 |
|
169 | |||
|
170 | Update the source repository format and check that shared repo works | |||
|
171 | ||||
|
172 | $ cd ../source | |||
|
173 | $ echo "[format]" >> .hg/hgrc | |||
|
174 | $ echo "revlog-compression=zstd" >> .hg/hgrc | |||
|
175 | ||||
|
176 | $ hg debugupgraderepo --run -q -R ../shared1 | |||
|
177 | abort: cannot upgrade repository; unsupported source requirement: shared | |||
|
178 | [255] | |||
|
179 | ||||
|
180 | $ hg debugupgraderepo --run -q | |||
|
181 | upgrade will perform the following actions: | |||
|
182 | ||||
|
183 | requirements | |||
|
184 | preserved: dotencode, exp-sharesafe, fncache, generaldelta, revlogv1, sparserevlog, store | |||
|
185 | added: revlog-compression-zstd | |||
|
186 | ||||
|
187 | $ hg log -r . | |||
|
188 | changeset: 1:5f6d8a4bf34a | |||
|
189 | user: test | |||
|
190 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
191 | summary: added b | |||
|
192 | ||||
|
193 | Shared one should work | |||
|
194 | $ cd ../shared1 | |||
|
195 | $ hg log -r . | |||
|
196 | changeset: 2:155349b645be | |||
|
197 | tag: tip | |||
|
198 | user: test | |||
|
199 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
200 | summary: added c | |||
|
201 | ||||
170 | Unsharing works |
|
202 | Unsharing works | |
171 |
|
203 | |||
172 | $ hg unshare |
|
204 | $ hg unshare |
General Comments 0
You need to be logged in to leave comments.
Login now