diff mercurial/debugcommands.py @ 35730:05d415790761

debugdownload: read repository hgrc if there is one The command does not require a repository, but will use it if there is one. This simplifies the reading of the remote destination when testing for largefile based url.
author Boris Feld <boris.feld@octobus.net>
date Thu, 18 Jan 2018 16:47:14 +0100
parents 22a877215ea1
children c8e2d6ed1f9e
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Fri Jan 19 00:18:45 2018 -0500
+++ b/mercurial/debugcommands.py	Thu Jan 18 16:47:14 2018 +0100
@@ -797,8 +797,8 @@
     [
         ('o', 'output', '', _('path')),
     ],
-    norepo=True)
-def debugdownload(ui, url, output=None, **opts):
+    optionalrepo=True)
+def debugdownload(ui, repo, url, output=None, **opts):
     """download a resource using Mercurial logic and config
     """
     fh = urlmod.open(ui, url, output)