comparison tests/test-largefiles-cache.t @ 28878:a75c9665ef06

largefiles: introduce push --lfrev to control which revisions are pushed The default of pushing all largefiles referenced in outgoing revisions is safe, but also expensive and sometimes not what is needed. We thus introduce a --lfrev option, similar to what pull already has. By specifying an empty set of revisions (or null), it is possible to get lazy (and insecure!) pushes of revisions without referenced largefiles, similar to how pull works.
author Mads Kiilerich <madski@unity3d.com>
date Sun, 27 Mar 2016 13:00:28 -0700
parents 6b1fc09c699a
children 71f9956074a3
comparison
equal deleted inserted replaced
28877:8079639b20dc 28878:a75c9665ef06
233 pushing to http://localhost:$HGPORT2/ 233 pushing to http://localhost:$HGPORT2/
234 searching for changes 234 searching for changes
235 abort: largefile e2fb5f2139d086ded2cb600d5a91a196e76bf020 missing from store (needs to be uploaded) 235 abort: largefile e2fb5f2139d086ded2cb600d5a91a196e76bf020 missing from store (needs to be uploaded)
236 [255] 236 [255]
237 237
238 Verify that --lfrev controls which revisions are checked for largefiles to push
239
240 $ hg push http://localhost:$HGPORT2 -f --config largefiles.usercache=nocache --lfrev tip
241 pushing to http://localhost:$HGPORT2/
242 searching for changes
243 abort: largefile e2fb5f2139d086ded2cb600d5a91a196e76bf020 missing from store (needs to be uploaded)
244 [255]
245
246 $ hg push http://localhost:$HGPORT2 -f --config largefiles.usercache=nocache --lfrev null
247 pushing to http://localhost:$HGPORT2/
248 searching for changes
249 remote: adding changesets
250 remote: adding manifests
251 remote: adding file changes
252 remote: added 1 changesets with 1 changes to 1 files (+1 heads)
253
238 #endif 254 #endif