Mercurial > hg-stable
diff mercurial/wireproto.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 | 47e3420ae889 |
children | 90f86ad3d4ff |
line wrap: on
line diff
--- a/mercurial/wireproto.py Tue Aug 19 01:13:10 2014 +0200 +++ b/mercurial/wireproto.py Tue Sep 02 12:11:36 2014 +0200 @@ -328,7 +328,7 @@ def changegroup(self, nodes, kind): n = encodelist(nodes) f = self._callcompressable("changegroup", roots=n) - return changegroupmod.unbundle10(f, 'UN') + return changegroupmod.cg1unpacker(f, 'UN') def changegroupsubset(self, bases, heads, kind): self.requirecap('changegroupsubset', _('look up remote changes')) @@ -336,7 +336,7 @@ heads = encodelist(heads) f = self._callcompressable("changegroupsubset", bases=bases, heads=heads) - return changegroupmod.unbundle10(f, 'UN') + return changegroupmod.cg1unpacker(f, 'UN') def getbundle(self, source, **kwargs): self.requirecap('getbundle', _('look up remote changes')) @@ -362,7 +362,7 @@ if bundlecaps is not None and 'HG2X' in bundlecaps: return bundle2.unbundle20(self.ui, f) else: - return changegroupmod.unbundle10(f, 'UN') + return changegroupmod.cg1unpacker(f, 'UN') def unbundle(self, cg, heads, source): '''Send cg (a readable file-like object representing the