mercurial/httprepo.py
changeset 3703 e674cae8efee
parent 3669 f4dc02d7fb71
child 3886 abaee83ce0a6
child 4012 d1e31d7f7d44
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)