Mercurial > hg
comparison mercurial/httprepo.py @ 3703:e674cae8efee
fix push over HTTP to older servers
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 21 Nov 2006 23:08:29 -0200 |
parents | f4dc02d7fb71 |
children | abaee83ce0a6 d1e31d7f7d44 |
comparison
equal
deleted
inserted
replaced
3702:70c3ee224c08 | 3703:e674cae8efee |
---|---|
326 # have to stream bundle to a temp file because we do not have | 326 # have to stream bundle to a temp file because we do not have |
327 # http 1.1 chunked transfer. | 327 # http 1.1 chunked transfer. |
328 | 328 |
329 type = "" | 329 type = "" |
330 types = self.capable('unbundle') | 330 types = self.capable('unbundle') |
331 # servers older than d1b16a746db6 will send 'unbundle' as a | |
332 # boolean capability | |
333 try: | |
334 types = types.split(',') | |
335 except AttributeError: | |
336 types = [""] | |
331 if types: | 337 if types: |
332 for x in types.split(','): | 338 for x in types: |
333 if x in changegroup.bundletypes: | 339 if x in changegroup.bundletypes: |
334 type = x | 340 type = x |
335 break | 341 break |
336 | 342 |
337 tempname = changegroup.writebundle(cg, None, type) | 343 tempname = changegroup.writebundle(cg, None, type) |