# HG changeset patch # User Pierre-Yves David # Date 2014-08-29 10:28:58 # Node ID dc371d1f0de1905dc12609a1805f80119e17ca66 # Parent 7e6dd496d3278796737b18df8bac489c41dde3e8 pull: use the "cg" argument when pulling a bundle2 We use the `cg` argument to disable the generation of a changegroup part. This is useful to pull information when changesets are already in sync (phases, obsmarkers). diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -826,6 +826,7 @@ def _pullbundle2(pullop): kwargs['common'] = pullop.common kwargs['heads'] = pullop.heads or pullop.rheads + kwargs['cg'] = pullop.fetch if 'b2x:listkeys' in remotecaps: kwargs['listkeys'] = ['phase'] if not pullop.fetch: