mercurial/httprepo.py
changeset 9748 67e5d5a2f625
parent 9467 4c041f1ee1b4
child 9861 0262bb59016f
equal deleted inserted replaced
9747:85a3285860d3 9748:67e5d5a2f625
   104         # accept old "text/plain" and "application/hg-changegroup" for now
   104         # accept old "text/plain" and "application/hg-changegroup" for now
   105         if not (proto.startswith('application/mercurial-') or
   105         if not (proto.startswith('application/mercurial-') or
   106                 proto.startswith('text/plain') or
   106                 proto.startswith('text/plain') or
   107                 proto.startswith('application/hg-changegroup')):
   107                 proto.startswith('application/hg-changegroup')):
   108             self.ui.debug("requested URL: '%s'\n" % url.hidepassword(cu))
   108             self.ui.debug("requested URL: '%s'\n" % url.hidepassword(cu))
   109             raise error.RepoError(_("'%s' does not appear to be an hg repository")
   109             raise error.RepoError(_("'%s' does not appear to be an hg repository:\n"
   110                                   % safeurl)
   110                                     "---%%<--- (%s)\n%s\n---%%<---\n")
       
   111                                   % (safeurl, proto, resp.read()))
   111 
   112 
   112         if proto.startswith('application/mercurial-'):
   113         if proto.startswith('application/mercurial-'):
   113             try:
   114             try:
   114                 version = proto.split('-', 1)[1]
   115                 version = proto.split('-', 1)[1]
   115                 version_info = tuple([int(n) for n in version.split('.')])
   116                 version_info = tuple([int(n) for n in version.split('.')])