Added full URL to debug output if something doesn't look like an http hg repo.
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 29 Jun 2007 11:13:36 +0200
changeset 4739 1da35d1e7ef9
parent 4738 c41a404ac387
child 4740 778bab992732
child 4749 e1d1b22bab57
Added full URL to debug output if something doesn't look like an http hg repo. This way it is easier to debug problems with failing subcommands, like changegroupsubset due to permission problems, when generally accessing the repository works fine.
mercurial/httprepo.py
--- a/mercurial/httprepo.py
+++ b/mercurial/httprepo.py
@@ -288,6 +288,7 @@ class httprepository(remoterepository):
         if not (proto.startswith('application/mercurial-') or
                 proto.startswith('text/plain') or
                 proto.startswith('application/hg-changegroup')):
+            self.ui.debug(_("Requested URL: '%s'\n") % cu)
             raise hg.RepoError(_("'%s' does not appear to be an hg repository")
                                % self._url)