Show More
@@ -797,8 +797,8 b' def debugdiscovery(ui, repo, remoteurl="' | |||
|
797 | 797 | [ |
|
798 | 798 | ('o', 'output', '', _('path')), |
|
799 | 799 | ], |
|
800 |
|
|
|
801 | def debugdownload(ui, url, output=None, **opts): | |
|
800 | optionalrepo=True) | |
|
801 | def debugdownload(ui, repo, url, output=None, **opts): | |
|
802 | 802 | """download a resource using Mercurial logic and config |
|
803 | 803 | """ |
|
804 | 804 | fh = urlmod.open(ui, url, output) |
@@ -52,3 +52,17 b' Test largefile URL' | |||
|
52 | 52 | |
|
53 | 53 | $ hg --traceback debugdownload "largefile://a57b57b39ee4dc3da1e03526596007f480ecdbe8" --config paths.default=http://localhost:$HGPORT/ |
|
54 | 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