Show More
@@ -99,13 +99,14 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 | 107 | self.ui.debug(_("Requested URL: '%s'\n") % cu) |
|
107 | 108 | raise error.RepoError(_("'%s' does not appear to be an hg repository") |
|
108 |
% s |
|
|
109 | % safeurl) | |
|
109 | 110 | |
|
110 | 111 | if proto.startswith('application/mercurial-'): |
|
111 | 112 | try: |
@@ -113,10 +114,10 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)") % (s |
|
|
117 | "header (%s)") % (safeurl, proto)) | |
|
117 | 118 | if version_info > (0, 1): |
|
118 | 119 | raise error.RepoError(_("'%s' uses newer protocol %s") % |
|
119 |
(s |
|
|
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