pull: use the "cg" argument when pulling a bundle2
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 29 Aug 2014 12:28:58 +0200
changeset 22352 dc371d1f0de1
parent 22351 7e6dd496d327
child 22353 47e3420ae889
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).
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: