# HG changeset patch # User Pierre-Yves David # Date 1409308138 -7200 # 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 -r 7e6dd496d327 -r dc371d1f0de1 mercurial/exchange.py --- a/mercurial/exchange.py Fri Aug 29 12:51:00 2014 +0200 +++ b/mercurial/exchange.py Fri Aug 29 12:28:58 2014 +0200 @@ -826,6 +826,7 @@ 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: