##// END OF EJS Templates
tests: update test-share-safe to work with non-zstd versions...
Pulkit Goyal -
r46114:68906595 default
parent child Browse files
Show More
@@ -170,13 +170,12 Test that if share source config is untr
170 Update the source repository format and check that shared repo works
170 Update the source repository format and check that shared repo works
171
171
172 $ cd ../source
172 $ cd ../source
173
174 Disable zstd related tests because its not present on pure version
175 #if zstd
173 $ echo "[format]" >> .hg/hgrc
176 $ echo "[format]" >> .hg/hgrc
174 $ echo "revlog-compression=zstd" >> .hg/hgrc
177 $ echo "revlog-compression=zstd" >> .hg/hgrc
175
178
176 $ hg debugupgraderepo --run -q -R ../shared1
177 abort: cannot upgrade repository; unsupported source requirement: shared
178 [255]
179
180 $ hg debugupgraderepo --run -q
179 $ hg debugupgraderepo --run -q
181 upgrade will perform the following actions:
180 upgrade will perform the following actions:
182
181
@@ -190,6 +189,29 Update the source repository format and
190 date: Thu Jan 01 00:00:00 1970 +0000
189 date: Thu Jan 01 00:00:00 1970 +0000
191 summary: added b
190 summary: added b
192
191
192 #endif
193 $ echo "[format]" >> .hg/hgrc
194 $ echo "use-persistent-nodemap=True" >> .hg/hgrc
195
196 $ hg debugupgraderepo --run -q -R ../shared1
197 abort: cannot upgrade repository; unsupported source requirement: shared
198 [255]
199
200 $ hg debugupgraderepo --run -q
201 upgrade will perform the following actions:
202
203 requirements
204 preserved: dotencode, exp-sharesafe, fncache, generaldelta, revlogv1, sparserevlog, store (no-zstd !)
205 preserved: dotencode, exp-sharesafe, fncache, generaldelta, revlog-compression-zstd, revlogv1, sparserevlog, store (zstd !)
206 added: persistent-nodemap
207
208 $ hg log -r .
209 changeset: 1:5f6d8a4bf34a
210 user: test
211 date: Thu Jan 01 00:00:00 1970 +0000
212 summary: added b
213
214
193 Shared one should work
215 Shared one should work
194 $ cd ../shared1
216 $ cd ../shared1
195 $ hg log -r .
217 $ hg log -r .
General Comments 0
You need to be logged in to leave comments. Login now