mercurial/bundle2.py
changeset 26269 521b4d061d4a
parent 26144 4bc3707f3e67
child 26393 cff70549a959
equal deleted inserted replaced
26268:a91d7dfd1952 26269:521b4d061d4a
  1172     # for the whole processing scope.
  1172     # for the whole processing scope.
  1173     op.gettransaction()
  1173     op.gettransaction()
  1174     unpackerversion = inpart.params.get('version', '01')
  1174     unpackerversion = inpart.params.get('version', '01')
  1175     # We should raise an appropriate exception here
  1175     # We should raise an appropriate exception here
  1176     unpacker = changegroup.packermap[unpackerversion][1]
  1176     unpacker = changegroup.packermap[unpackerversion][1]
  1177     cg = unpacker(inpart, 'UN')
  1177     cg = unpacker(inpart, None)
  1178     # the source and url passed here are overwritten by the one contained in
  1178     # the source and url passed here are overwritten by the one contained in
  1179     # the transaction.hookargs argument. So 'bundle2' is a placeholder
  1179     # the transaction.hookargs argument. So 'bundle2' is a placeholder
  1180     nbchangesets = None
  1180     nbchangesets = None
  1181     if 'nbchanges' in inpart.params:
  1181     if 'nbchanges' in inpart.params:
  1182         nbchangesets = int(inpart.params.get('nbchanges'))
  1182         nbchangesets = int(inpart.params.get('nbchanges'))