changeset 22352:dc371d1f0de1

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).
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 29 Aug 2014 12:28:58 +0200
parents 7e6dd496d327
children 47e3420ae889
files mercurial/exchange.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: