comparison mercurial/bundle2.py @ 32223:d7f93ebbbbdf

bundle: add optional 'tagsfnodecache' data to on disk bundle (issue5543) This should help performance when unbundling.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 05 May 2017 17:31:15 +0200
parents 6068712cbf03
children 655f1e2cfa5a
comparison
equal deleted inserted replaced
32222:6068712cbf03 32223:d7f93ebbbbdf
1373 part.addparam('version', cg.version) 1373 part.addparam('version', cg.version)
1374 if 'clcount' in cg.extras: 1374 if 'clcount' in cg.extras:
1375 part.addparam('nbchanges', str(cg.extras['clcount']), 1375 part.addparam('nbchanges', str(cg.extras['clcount']),
1376 mandatory=False) 1376 mandatory=False)
1377 1377
1378 addparttagsfnodescache(repo, bundler, outgoing)
1379
1378 def addparttagsfnodescache(repo, bundler, outgoing): 1380 def addparttagsfnodescache(repo, bundler, outgoing):
1379 # we include the tags fnode cache for the bundle changeset 1381 # we include the tags fnode cache for the bundle changeset
1380 # (as an optional parts) 1382 # (as an optional parts)
1381 cache = tags.hgtagsfnodescache(repo.unfiltered()) 1383 cache = tags.hgtagsfnodescache(repo.unfiltered())
1382 chunks = [] 1384 chunks = []