comparison mercurial/exchange.py @ 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 6d113cc7a31a
children 47e3420ae889
comparison
equal deleted inserted replaced
22351:7e6dd496d327 22352:dc371d1f0de1
824 # pulling changegroup 824 # pulling changegroup
825 pullop.todosteps.remove('changegroup') 825 pullop.todosteps.remove('changegroup')
826 826
827 kwargs['common'] = pullop.common 827 kwargs['common'] = pullop.common
828 kwargs['heads'] = pullop.heads or pullop.rheads 828 kwargs['heads'] = pullop.heads or pullop.rheads
829 kwargs['cg'] = pullop.fetch
829 if 'b2x:listkeys' in remotecaps: 830 if 'b2x:listkeys' in remotecaps:
830 kwargs['listkeys'] = ['phase'] 831 kwargs['listkeys'] = ['phase']
831 if not pullop.fetch: 832 if not pullop.fetch:
832 pullop.repo.ui.status(_("no changes found\n")) 833 pullop.repo.ui.status(_("no changes found\n"))
833 pullop.cgresult = 0 834 pullop.cgresult = 0