changeset 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 c841712253d5
files mercurial/bundle2.py mercurial/changegroup.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundle2.py	Thu Jul 13 21:10:55 2017 +0200
+++ b/mercurial/bundle2.py	Thu Jul 13 21:08:06 2017 +0200
@@ -403,10 +403,9 @@
     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
 
--- a/mercurial/changegroup.py	Thu Jul 13 21:10:55 2017 +0200
+++ b/mercurial/changegroup.py	Thu Jul 13 21:08:06 2017 +0200
@@ -412,7 +412,7 @@
             ret = deltaheads - 1
         else:
             ret = deltaheads + 1
-        return ret, added
+        return ret
 
 class cg2unpacker(cg1unpacker):
     """Unpacker for cg2 streams.