[PATCH 2 of 4] localpeer: propagate bundlecaps in getbundle call
pierre-yves.david at ens-lyon.org
pierre-yves.david at ens-lyon.org
Fri Apr 4 17:29:39 CDT 2014
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1396600400 25200
# Fri Apr 04 01:33:20 2014 -0700
# Node ID f9276e9909ad16a264126c7256efcae8f1212955
# Parent 6107f67dd40949dab34cb2501e7c2c20d5f8a0cf
localpeer: propagate bundlecaps in getbundle call
Best arguments are the ones in use...
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -101,13 +101,14 @@ class localpeer(peer.peerrepository):
return self._repo.heads()
def known(self, nodes):
return self._repo.known(nodes)
- def getbundle(self, source, heads=None, common=None, bundlecaps=None):
+ def getbundle(self, source, heads=None, common=None, bundlecaps=None,
+ format='HG10'):
return changegroup.getbundle(self._repo, source, heads=heads,
- common=common, bundlecaps=None)
+ common=common, bundlecaps=bundlecaps)
# TODO We might want to move the next two calls into legacypeer and add
# unbundle instead.
def lock(self):
More information about the Mercurial-devel
mailing list