comparison mercurial/httprepo.py @ 4739:1da35d1e7ef9

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.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 29 Jun 2007 11:13:36 +0200
parents a814a5b11fff
children bf10a03a6b24 167c422c745f
comparison
equal deleted inserted replaced
4738:c41a404ac387 4739:1da35d1e7ef9
286 286
287 # accept old "text/plain" and "application/hg-changegroup" for now 287 # accept old "text/plain" and "application/hg-changegroup" for now
288 if not (proto.startswith('application/mercurial-') or 288 if not (proto.startswith('application/mercurial-') or
289 proto.startswith('text/plain') or 289 proto.startswith('text/plain') or
290 proto.startswith('application/hg-changegroup')): 290 proto.startswith('application/hg-changegroup')):
291 self.ui.debug(_("Requested URL: '%s'\n") % cu)
291 raise hg.RepoError(_("'%s' does not appear to be an hg repository") 292 raise hg.RepoError(_("'%s' does not appear to be an hg repository")
292 % self._url) 293 % self._url)
293 294
294 if proto.startswith('application/mercurial-'): 295 if proto.startswith('application/mercurial-'):
295 try: 296 try: