mercurial/httprepo.py
changeset 7923 016d6357646d
parent 7752 998fc8f62539
child 8055 027ac8ccfb5b
equal deleted inserted replaced
7922:06bf76009249 7923:016d6357646d
   101 
   101 
   102         # accept old "text/plain" and "application/hg-changegroup" for now
   102         # accept old "text/plain" and "application/hg-changegroup" for now
   103         if not (proto.startswith('application/mercurial-') or
   103         if not (proto.startswith('application/mercurial-') or
   104                 proto.startswith('text/plain') or
   104                 proto.startswith('text/plain') or
   105                 proto.startswith('application/hg-changegroup')):
   105                 proto.startswith('application/hg-changegroup')):
   106             self.ui.debug(_("Requested URL: '%s'\n") % cu)
   106             self.ui.debug(_("requested URL: '%s'\n") % cu)
   107             raise error.RepoError(_("'%s' does not appear to be an hg repository")
   107             raise error.RepoError(_("'%s' does not appear to be an hg repository")
   108                                   % self._url)
   108                                   % self._url)
   109 
   109 
   110         if proto.startswith('application/mercurial-'):
   110         if proto.startswith('application/mercurial-'):
   111             try:
   111             try: