Mercurial > hg
comparison mercurial/exchange.py @ 25516:1e37bd83dc66
getbundle: add data about the number of changesets bundled
We use an advisory parameters to carry the number of changesets bundled. This
will be used for progress output.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sun, 07 Jun 2015 15:52:57 -0700 |
parents | 60f4e7022ffe |
children | 521c1a3139c9 |
comparison
equal
deleted
inserted
replaced
25515:e8075329c5fb | 25516:1e37bd83dc66 |
---|---|
1301 | 1301 |
1302 if cg: | 1302 if cg: |
1303 part = bundler.newpart('changegroup', data=cg) | 1303 part = bundler.newpart('changegroup', data=cg) |
1304 if version is not None: | 1304 if version is not None: |
1305 part.addparam('version', version) | 1305 part.addparam('version', version) |
1306 part.addparam('nbchanges', str(len(outgoing.missing)), mandatory=False) | |
1306 | 1307 |
1307 @getbundle2partsgenerator('listkeys') | 1308 @getbundle2partsgenerator('listkeys') |
1308 def _getbundlelistkeysparts(bundler, repo, source, bundlecaps=None, | 1309 def _getbundlelistkeysparts(bundler, repo, source, bundlecaps=None, |
1309 b2caps=None, **kwargs): | 1310 b2caps=None, **kwargs): |
1310 """add parts containing listkeys namespaces to the requested bundle""" | 1311 """add parts containing listkeys namespaces to the requested bundle""" |