comparison mercurial/bundle2.py @ 23001:4df9b5e62f70

bundle2: add a comment about addchangegroup source and url
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 14 Oct 2014 01:27:25 -0700
parents b1d694d3975e
children d3137827016a
comparison
equal deleted inserted replaced
23000:90c425f80316 23001:4df9b5e62f70
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.cg1unpacker(inpart, 'UN') 823 cg = changegroup.cg1unpacker(inpart, 'UN')
824 # the source and url passed here are overwritten by the one contained in
825 # the transaction.hookargs argument. So 'bundle2' is a placeholder
824 ret = changegroup.addchangegroup(op.repo, cg, 'bundle2', 'bundle2') 826 ret = changegroup.addchangegroup(op.repo, cg, 'bundle2', 'bundle2')
825 op.records.add('changegroup', {'return': ret}) 827 op.records.add('changegroup', {'return': ret})
826 if op.reply is not None: 828 if op.reply is not None:
827 # This is definitly not the final form of this 829 # This is definitly not the final form of this
828 # return. But one need to start somewhere. 830 # return. But one need to start somewhere.