equal
deleted
inserted
replaced
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) |