[PATCH 3 of 4] bundle2: remove _getbundleextrapart

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

# HG changeset patch
# User Mike Hommey <mh at glandium.org>
# Date 1411613608 -32400
#      Thu Sep 25 11:53:28 2014 +0900
# Node ID 17baf7a6335c720094b1e4d1b2b2c9d9911b5ba5
# Parent  7abbac9233058376fdcbfef0549e6714e3bf9711
bundle2: remove _getbundleextrapart

Extensions can now add new part generators with the getbundle2partsgenerator
decorator instead.

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -1056,22 +1056,16 @@ def _getbundleobsmarkerpart(bundler, rep
     """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)
- at getbundle2partsgenerator('extra')
-def _getbundleextrapart(bundler, repo, source, heads=None, common=None,
-                        bundlecaps=None, b2caps=None, **kwargs):
-    """hook function to let extensions add parts to the requested bundle"""
-    pass
 def check_heads(repo, their_heads, context):
     """check if the heads of a repo have been modified
     Used by peer for unbundling.
     heads = repo.heads()
     heads_hash = util.sha1(''.join(sorted(heads))).digest()
     if not (their_heads == ['force'] or their_heads == heads or

More information about the Mercurial-devel mailing list