mercurial/bundle2.py
changeset 22390 e2806b8613ca
parent 22344 9829b7948100
child 22548 8a1ae133770a
equal deleted inserted replaced
22389:94f77624dbb5 22390:e2806b8613ca
   818     #
   818     #
   819     # The addchangegroup function will get a transaction object by itself, but
   819     # The addchangegroup function will get a transaction object by itself, but
   820     # we need to make sure we trigger the creation of a transaction object used
   820     # we need to make sure we trigger the creation of a transaction object used
   821     # for the whole processing scope.
   821     # for the whole processing scope.
   822     op.gettransaction()
   822     op.gettransaction()
   823     cg = changegroup.unbundle10(inpart, 'UN')
   823     cg = changegroup.cg1unpacker(inpart, 'UN')
   824     ret = changegroup.addchangegroup(op.repo, cg, 'bundle2', 'bundle2')
   824     ret = changegroup.addchangegroup(op.repo, cg, 'bundle2', 'bundle2')
   825     op.records.add('changegroup', {'return': ret})
   825     op.records.add('changegroup', {'return': ret})
   826     if op.reply is not None:
   826     if op.reply is not None:
   827         # This is definitly not the final form of this
   827         # This is definitly not the final form of this
   828         # return. But one need to start somewhere.
   828         # return. But one need to start somewhere.