##// END OF EJS Templates
Merge with crew-stable
Patrick Mezard -
r8055:027ac8cc merge default
parent child Browse files
Show More
@@ -99,13 +99,14 b' class httprepository(repo.repository):'
99 99 except AttributeError:
100 100 proto = resp.headers['content-type']
101 101
102 safeurl = url.hidepassword(self._url)
102 103 # accept old "text/plain" and "application/hg-changegroup" for now
103 104 if not (proto.startswith('application/mercurial-') or
104 105 proto.startswith('text/plain') or
105 106 proto.startswith('application/hg-changegroup')):
106 self.ui.debug(_("requested URL: '%s'\n") % cu)
107 self.ui.debug(_("requested URL: '%s'\n") % url.hidepassword(cu))
107 108 raise error.RepoError(_("'%s' does not appear to be an hg repository")
108 % self._url)
109 % safeurl)
109 110
110 111 if proto.startswith('application/mercurial-'):
111 112 try:
@@ -113,10 +114,10 b' class httprepository(repo.repository):'
113 114 version_info = tuple([int(n) for n in version.split('.')])
114 115 except ValueError:
115 116 raise error.RepoError(_("'%s' sent a broken Content-Type "
116 "header (%s)") % (self._url, proto))
117 "header (%s)") % (safeurl, proto))
117 118 if version_info > (0, 1):
118 119 raise error.RepoError(_("'%s' uses newer protocol %s") %
119 (self._url, version))
120 (safeurl, version))
120 121
121 122 return resp
122 123
General Comments 0
You need to be logged in to leave comments. Login now