# HG changeset patch # User Boris Feld # Date 2017-07-13 19:08:06 # Node ID bb72031f0ea85e689b196cebf7256dec176d107a # Parent 57a017f79e96e8420d3ec594316361ff3b7a1ae6 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. diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -403,10 +403,9 @@ def processbundle(repo, unbundler, trans return op def _processchangegroup(op, cg, tr, source, url, **kwargs): - ret, addednodes = cg.apply(op.repo, tr, source, url, **kwargs) + ret = cg.apply(op.repo, tr, source, url, **kwargs) op.records.add('changegroup', { 'return': ret, - 'addednodes': addednodes, }) return ret diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -412,7 +412,7 @@ class cg1unpacker(object): ret = deltaheads - 1 else: ret = deltaheads + 1 - return ret, added + return ret class cg2unpacker(cg1unpacker): """Unpacker for cg2 streams.