##// END OF EJS Templates
debugdownload: read repository hgrc if there is one...
Boris Feld -
r35748:05d41579 default
parent child Browse files
Show More
@@ -797,8 +797,8 b' def debugdiscovery(ui, repo, remoteurl="'
797 [
797 [
798 ('o', 'output', '', _('path')),
798 ('o', 'output', '', _('path')),
799 ],
799 ],
800 norepo=True)
800 optionalrepo=True)
801 def debugdownload(ui, url, output=None, **opts):
801 def debugdownload(ui, repo, url, output=None, **opts):
802 """download a resource using Mercurial logic and config
802 """download a resource using Mercurial logic and config
803 """
803 """
804 fh = urlmod.open(ui, url, output)
804 fh = urlmod.open(ui, url, output)
@@ -52,3 +52,17 b' Test largefile URL'
52
52
53 $ hg --traceback debugdownload "largefile://a57b57b39ee4dc3da1e03526596007f480ecdbe8" --config paths.default=http://localhost:$HGPORT/
53 $ hg --traceback debugdownload "largefile://a57b57b39ee4dc3da1e03526596007f480ecdbe8" --config paths.default=http://localhost:$HGPORT/
54 1 0000000000000000000000000000000000000000
54 1 0000000000000000000000000000000000000000
55
56 from within a repository
57
58 $ hg clone http://localhost:$HGPORT/ client
59 no changes found
60 updating to branch default
61 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
62
63 $ cd client
64 $ hg path
65 default = http://localhost:$HGPORT/
66 $ hg debugdownload "largefile://a57b57b39ee4dc3da1e03526596007f480ecdbe8"
67 1 0000000000000000000000000000000000000000
68 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now