Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/httprepo.py @ 4633:ff7253a0d1da
Cleanup of whitespace, indentation and line continuation.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 19 Jun 2007 08:06:37 +0200 |
parents | 96d8a56d4ef9 |
children | a814a5b11fff |
comparison
equal
deleted
inserted
replaced
4632:8d46056960ab | 4633:ff7253a0d1da |
---|---|
269 proto = resp.getheader('content-type') | 269 proto = resp.getheader('content-type') |
270 except AttributeError: | 270 except AttributeError: |
271 proto = resp.headers['content-type'] | 271 proto = resp.headers['content-type'] |
272 | 272 |
273 # accept old "text/plain" and "application/hg-changegroup" for now | 273 # accept old "text/plain" and "application/hg-changegroup" for now |
274 if not proto.startswith('application/mercurial-') and \ | 274 if not (proto.startswith('application/mercurial-') or |
275 not proto.startswith('text/plain') and \ | 275 proto.startswith('text/plain') or |
276 not proto.startswith('application/hg-changegroup'): | 276 proto.startswith('application/hg-changegroup')): |
277 raise hg.RepoError(_("'%s' does not appear to be an hg repository") % | 277 raise hg.RepoError(_("'%s' does not appear to be an hg repository") |
278 self._url) | 278 % self._url) |
279 | 279 |
280 if proto.startswith('application/mercurial-'): | 280 if proto.startswith('application/mercurial-'): |
281 try: | 281 try: |
282 version = proto.split('-', 1)[1] | 282 version = proto.split('-', 1)[1] |
283 version_info = tuple([int(n) for n in version.split('.')]) | 283 version_info = tuple([int(n) for n in version.split('.')]) |