commands: use cg?unpacker.apply() instead of changegroup.addchangegroup()
authorAugie Fackler <augie@google.com>
Tue, 13 Oct 2015 17:12:12 -0400
changeset 26699 76f20fc8d54d
parent 26698 c94cdeeb586a
child 26700 dbc3d945ba36
commands: use cg?unpacker.apply() instead of changegroup.addchangegroup()
mercurial/commands.py
--- a/mercurial/commands.py	Tue Oct 13 17:11:52 2015 -0400
+++ b/mercurial/commands.py	Tue Oct 13 17:12:12 2015 -0400
@@ -6515,8 +6515,7 @@
                            for r in op.records['changegroup']]
                 modheads = changegroup.combineresults(changes)
             else:
-                modheads = changegroup.addchangegroup(repo, gen, 'unbundle',
-                                                      'bundle:' + fname)
+                modheads = gen.apply(repo, 'unbundle', 'bundle:' + fname)
     finally:
         lock.release()