Show More
@@ -279,11 +279,12 class httprepository(remoterepository): | |||||
279 |
|
279 | |||
280 | if proto.startswith('application/mercurial-'): |
|
280 | if proto.startswith('application/mercurial-'): | |
281 | try: |
|
281 | try: | |
282 |
version = |
|
282 | version = proto.split('-', 1)[1] | |
|
283 | version_info = tuple([int(n) for n in version.split('.')]) | |||
283 | except ValueError: |
|
284 | except ValueError: | |
284 | raise hg.RepoError(_("'%s' sent a broken Content-type " |
|
285 | raise hg.RepoError(_("'%s' sent a broken Content-type " | |
285 | "header (%s)") % (self._url, proto)) |
|
286 | "header (%s)") % (self._url, proto)) | |
286 |
if version > |
|
287 | if version_info > (0, 1): | |
287 | raise hg.RepoError(_("'%s' uses newer protocol %s") % |
|
288 | raise hg.RepoError(_("'%s' uses newer protocol %s") % | |
288 | (self._url, version)) |
|
289 | (self._url, version)) | |
289 |
|
290 |
General Comments 0
You need to be logged in to leave comments.
Login now