mercurial/changegroup.py
changeset 33030 3e102a8dd52c
parent 32931 b08431e1b062
child 33036 52c7060b707a
--- a/mercurial/changegroup.py	Thu Jun 22 10:15:15 2017 -0700
+++ b/mercurial/changegroup.py	Fri Jun 16 16:56:16 2017 -0700
@@ -426,9 +426,10 @@
             repo.ui.flush()
         # never return 0 here:
         if deltaheads < 0:
-            return deltaheads - 1
+            ret = deltaheads - 1
         else:
-            return deltaheads + 1
+            ret = deltaheads + 1
+        return ret, added
 
 class cg2unpacker(cg1unpacker):
     """Unpacker for cg2 streams.