diff mercurial/bundle2.py @ 22390:e2806b8613ca

changegroup: rename bundle-related functions and classes Functions like getbundle and classes like unbundle10 really manipulate changegroups and not bundles. A HG10 bundle is the same as a changegroup plus a small header, but this is no longer the case for a HG2X bundle, so it's better to separate the names a bit.
author Sune Foldager <cryo@cyanite.org>
date Tue, 02 Sep 2014 12:11:36 +0200
parents 9829b7948100
children 8a1ae133770a
line wrap: on
line diff
--- a/mercurial/bundle2.py	Tue Aug 19 01:13:10 2014 +0200
+++ b/mercurial/bundle2.py	Tue Sep 02 12:11:36 2014 +0200
@@ -820,7 +820,7 @@
     # we need to make sure we trigger the creation of a transaction object used
     # for the whole processing scope.
     op.gettransaction()
-    cg = changegroup.unbundle10(inpart, 'UN')
+    cg = changegroup.cg1unpacker(inpart, 'UN')
     ret = changegroup.addchangegroup(op.repo, cg, 'bundle2', 'bundle2')
     op.records.add('changegroup', {'return': ret})
     if op.reply is not None: