comparison tests/test-url-download.t @ 35564:cf841f2b5a72

largefiles: add support for 'largefiles://' url scheme This changesets allows Mercurial to transparently download content from the configured largefile store. This handle all authentication and largefile protocol details. The target usecase is to leverage largefile infrastructure for clone bundle. See next changeset for details
author Boris Feld <boris.feld@octobus.net>
date Thu, 21 Dec 2017 13:57:57 +0100
parents 6580cf751418
children 05d415790761
comparison
equal deleted inserted replaced
35563:4aa6ed598323 35564:cf841f2b5a72
32 Check other kind of compatible url 32 Check other kind of compatible url
33 33
34 $ hg debugdownload ./null.txt 34 $ hg debugdownload ./null.txt
35 1 0000000000000000000000000000000000000000 35 1 0000000000000000000000000000000000000000
36 36
37 Test largefile URL
38 ------------------
39
40 $ cat << EOF >> $HGRCPATH
41 > [extensions]
42 > largefiles=
43 > EOF
44
45 $ killdaemons.py
46 $ rm -f error.log hg1.pid
47 $ hg serve -R server -p $HGPORT -d --pid-file=hg1.pid -E error.log
48 $ cat hg1.pid >> $DAEMON_PIDS
49
50 $ hg -R server debuglfput null.txt
51 a57b57b39ee4dc3da1e03526596007f480ecdbe8
52
53 $ hg --traceback debugdownload "largefile://a57b57b39ee4dc3da1e03526596007f480ecdbe8" --config paths.default=http://localhost:$HGPORT/
54 1 0000000000000000000000000000000000000000