diff 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
line wrap: on
line diff
--- a/tests/test-url-download.t	Thu Dec 21 13:53:26 2017 +0100
+++ b/tests/test-url-download.t	Thu Dec 21 13:57:57 2017 +0100
@@ -34,3 +34,21 @@
   $ hg debugdownload ./null.txt
   1 0000000000000000000000000000000000000000
 
+Test largefile URL
+------------------
+
+  $ cat << EOF >> $HGRCPATH
+  > [extensions]
+  > largefiles=
+  > EOF
+
+  $ killdaemons.py
+  $ rm -f error.log hg1.pid
+  $ hg serve -R server -p $HGPORT -d --pid-file=hg1.pid -E error.log
+  $ cat hg1.pid >> $DAEMON_PIDS
+
+  $ hg -R server debuglfput null.txt
+  a57b57b39ee4dc3da1e03526596007f480ecdbe8
+
+  $ hg --traceback debugdownload "largefile://a57b57b39ee4dc3da1e03526596007f480ecdbe8" --config paths.default=http://localhost:$HGPORT/
+  1 0000000000000000000000000000000000000000