Show More
@@ -1577,19 +1577,21 b' def _addpartsfromopts(ui, repo, bundler,' | |||||
1577 | # different right now. So we keep them separated for now for the sake of |
|
1577 | # different right now. So we keep them separated for now for the sake of | |
1578 | # simplicity. |
|
1578 | # simplicity. | |
1579 |
|
1579 | |||
1580 | # we always want a changegroup in such bundle |
|
1580 | # we might not always want a changegroup in such bundle, for example in | |
1581 | cgversion = opts.get('cg.version') |
|
1581 | # stream bundles | |
1582 | if cgversion is None: |
|
1582 | if opts.get('changegroup', True): | |
1583 |
cgversion = |
|
1583 | cgversion = opts.get('cg.version') | |
1584 | cg = changegroup.makechangegroup(repo, outgoing, cgversion, source) |
|
1584 | if cgversion is None: | |
1585 | part = bundler.newpart('changegroup', data=cg.getchunks()) |
|
1585 | cgversion = changegroup.safeversion(repo) | |
1586 | part.addparam('version', cg.version) |
|
1586 | cg = changegroup.makechangegroup(repo, outgoing, cgversion, source) | |
1587 | if 'clcount' in cg.extras: |
|
1587 | part = bundler.newpart('changegroup', data=cg.getchunks()) | |
1588 |
part.addparam(' |
|
1588 | part.addparam('version', cg.version) | |
1589 | mandatory=False) |
|
1589 | if 'clcount' in cg.extras: | |
1590 | if opts.get('phases') and repo.revs('%ln and secret()', |
|
1590 | part.addparam('nbchanges', '%d' % cg.extras['clcount'], | |
1591 | outgoing.missingheads): |
|
1591 | mandatory=False) | |
1592 | part.addparam('targetphase', '%d' % phases.secret, mandatory=False) |
|
1592 | if opts.get('phases') and repo.revs('%ln and secret()', | |
|
1593 | outgoing.missingheads): | |||
|
1594 | part.addparam('targetphase', '%d' % phases.secret, mandatory=False) | |||
1593 |
|
1595 | |||
1594 | addparttagsfnodescache(repo, bundler, outgoing) |
|
1596 | addparttagsfnodescache(repo, bundler, outgoing) | |
1595 | addpartrevbranchcache(repo, bundler, outgoing) |
|
1597 | addpartrevbranchcache(repo, bundler, outgoing) |
@@ -1263,7 +1263,7 b' def bundle(ui, repo, fname, dest=None, *' | |||||
1263 | compopts['level'] = complevel |
|
1263 | compopts['level'] = complevel | |
1264 |
|
1264 | |||
1265 |
|
1265 | |||
1266 | contentopts = {'cg.version': cgversion} |
|
1266 | contentopts = {'cg.version': cgversion, 'changegroup': True} | |
1267 | if repo.ui.configbool('experimental', 'evolution.bundle-obsmarker'): |
|
1267 | if repo.ui.configbool('experimental', 'evolution.bundle-obsmarker'): | |
1268 | contentopts['obsolescence'] = True |
|
1268 | contentopts['obsolescence'] = True | |
1269 | if repo.ui.configbool('experimental', 'bundle-phases'): |
|
1269 | if repo.ui.configbool('experimental', 'bundle-phases'): |
General Comments 0
You need to be logged in to leave comments.
Login now