[PATCH 4 of 4] bundle2: Remove unused heads and common arguments to getbundle2partsgenerator functions

Mike Hommey mh at glandium.org
Wed Sep 24 21:56:01 CDT 2014


# HG changeset patch
# User Mike Hommey <mh at glandium.org>
# Date 1411613656 -32400
#      Thu Sep 25 11:54:16 2014 +0900
# Node ID e36dcfe3f313c0183524050f32b74fc040182995
# Parent  17baf7a6335c720094b1e4d1b2b2c9d9911b5ba5
bundle2: Remove unused heads and common arguments to getbundle2partsgenerator functions

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -1035,28 +1035,28 @@ def _getbundlechangegrouppart(bundler, r
         # build changegroup bundle here.
         cg = changegroup.getchangegroup(repo, source, heads=heads,
                                         common=common, bundlecaps=bundlecaps)
 
     if cg:
         bundler.newpart('b2x:changegroup', data=cg.getchunks())
 
 @getbundle2partsgenerator('listkeys')
-def _getbundlelistkeysparts(bundler, repo, source, heads=None, common=None,
-                           bundlecaps=None, b2caps=None, **kwargs):
+def _getbundlelistkeysparts(bundler, repo, source, bundlecaps=None,
+                            b2caps=None, **kwargs):
     """add parts containing listkeys namespaces to the requested bundle"""
     listkeys = kwargs.get('listkeys', ())
     for namespace in listkeys:
         part = bundler.newpart('b2x:listkeys')
         part.addparam('namespace', namespace)
         keys = repo.listkeys(namespace).items()
         part.data = pushkey.encodekeys(keys)
 
 @getbundle2partsgenerator('obsmarkers')
-def _getbundleobsmarkerpart(bundler, repo, source, heads=None, common=None,
+def _getbundleobsmarkerpart(bundler, repo, source, heads=None,
                             bundlecaps=None, b2caps=None, **kwargs):
     """add an obsolescence markers part to the requested bundle"""
     if kwargs.get('obsmarkers', False):
         if heads is None:
             heads = repo.heads()
         subset = [c.node() for c in repo.set('::%ln', heads)]
         markers = repo.obsstore.relevantmarkers(subset)
         buildobsmarkerspart(bundler, markers)


More information about the Mercurial-devel mailing list