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