Mercurial > public > mercurial-scm > hg
comparison mercurial/bundle2.py @ 33461:bb72031f0ea8
changegroup: stop returning and recording added nodes in 'cg.apply'
cg.apply used to returns the added nodes. Callers doesn't have a use for it
anymore, remove the added node and stops recording it in the current
operation.
This information was added in the current release cycle so no extensions
breakage should happens.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 13 Jul 2017 21:08:06 +0200 |
parents | 57a017f79e96 |
children | 0407a51b9d8c |
comparison
equal
deleted
inserted
replaced
33460:57a017f79e96 | 33461:bb72031f0ea8 |
---|---|
401 repo.ui.debug('bundle2-input-bundle: %i parts total\n' % nbpart) | 401 repo.ui.debug('bundle2-input-bundle: %i parts total\n' % nbpart) |
402 | 402 |
403 return op | 403 return op |
404 | 404 |
405 def _processchangegroup(op, cg, tr, source, url, **kwargs): | 405 def _processchangegroup(op, cg, tr, source, url, **kwargs): |
406 ret, addednodes = cg.apply(op.repo, tr, source, url, **kwargs) | 406 ret = cg.apply(op.repo, tr, source, url, **kwargs) |
407 op.records.add('changegroup', { | 407 op.records.add('changegroup', { |
408 'return': ret, | 408 'return': ret, |
409 'addednodes': addednodes, | |
410 }) | 409 }) |
411 return ret | 410 return ret |
412 | 411 |
413 def _processpart(op, part): | 412 def _processpart(op, part): |
414 """process a single part from a bundle | 413 """process a single part from a bundle |