mercurial/httppeer.py
changeset 18738 b376e8f91c16
parent 18737 56f8522c3591
child 18742 a07be8953733
equal deleted inserted replaced
18737:56f8522c3591 18738:b376e8f91c16
   150                 proto.startswith('application/hg-changegroup')):
   150                 proto.startswith('application/hg-changegroup')):
   151             self.ui.debug("requested URL: '%s'\n" % util.hidepassword(cu))
   151             self.ui.debug("requested URL: '%s'\n" % util.hidepassword(cu))
   152             raise error.RepoError(
   152             raise error.RepoError(
   153                 _("'%s' does not appear to be an hg repository:\n"
   153                 _("'%s' does not appear to be an hg repository:\n"
   154                   "---%%<--- (%s)\n%s\n---%%<---\n")
   154                   "---%%<--- (%s)\n%s\n---%%<---\n")
   155                 % (safeurl, proto or 'no content-type', resp.read()))
   155                 % (safeurl, proto or 'no content-type', resp.read(1024)))
   156 
   156 
   157         if proto.startswith('application/mercurial-'):
   157         if proto.startswith('application/mercurial-'):
   158             try:
   158             try:
   159                 version = proto.split('-', 1)[1]
   159                 version = proto.split('-', 1)[1]
   160                 version_info = tuple([int(n) for n in version.split('.')])
   160                 version_info = tuple([int(n) for n in version.split('.')])