mercurial/bundlerepo.py
branchstable
changeset 27953 88609cfa3745
parent 27776 6fe2da48a6dd
child 28186 5ab6f0fde75f
equal deleted inserted replaced
27952:c5ffbd4c033b 27953:88609cfa3745
   280                     if cgstream is not None:
   280                     if cgstream is not None:
   281                         raise NotImplementedError("can't process "
   281                         raise NotImplementedError("can't process "
   282                                                   "multiple changegroups")
   282                                                   "multiple changegroups")
   283                     cgstream = part
   283                     cgstream = part
   284                     version = part.params.get('version', '01')
   284                     version = part.params.get('version', '01')
   285                     if version not in changegroup.supportedversions(self):
   285                     if version not in changegroup.allsupportedversions(ui):
   286                         msg = _('Unsupported changegroup version: %s')
   286                         msg = _('Unsupported changegroup version: %s')
   287                         raise error.Abort(msg % version)
   287                         raise error.Abort(msg % version)
   288                     if self.bundle.compressed():
   288                     if self.bundle.compressed():
   289                         cgstream = _writetempbundle(part.read,
   289                         cgstream = _writetempbundle(part.read,
   290                                                     ".cg%sun" % version)
   290                                                     ".cg%sun" % version)