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