Patchwork [2,of,4] localpeer: propagate bundlecaps in getbundle call

login
register
mail settings
Submitter Pierre-Yves David
Date April 4, 2014, 10:29 p.m.
Message ID <f9276e9909ad16a26412.1396650579@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/4231/
State Accepted
Commit 8d853cad6b140a13be68af4a449292bbeddb7856
Headers show

Comments

Pierre-Yves David - April 4, 2014, 10:29 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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...

Patch

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):