Mercurial > hg
comparison mercurial/changegroup.py @ 40433:808b762679cd
changegroup: add a option to create bundle with full snapshot only
This is easy to implement now and can be useful for benchmarking.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 18 Oct 2018 12:31:06 +0200 |
parents | 968dd7e02ac5 |
children | dba590f27c7a |
comparison
equal
deleted
inserted
replaced
40432:968dd7e02ac5 | 40433:808b762679cd |
---|---|
696 if topic is not None: | 696 if topic is not None: |
697 progress = repo.ui.makeprogress(topic, unit=_('chunks'), | 697 progress = repo.ui.makeprogress(topic, unit=_('chunks'), |
698 total=len(nodes)) | 698 total=len(nodes)) |
699 | 699 |
700 configtarget = repo.ui.config('devel', 'bundle.delta') | 700 configtarget = repo.ui.config('devel', 'bundle.delta') |
701 if configtarget not in ('', 'p1'): | 701 if configtarget not in ('', 'p1', 'full'): |
702 msg = _("""config "devel.bundle.delta" as unknown value: %s""") | 702 msg = _("""config "devel.bundle.delta" as unknown value: %s""") |
703 repo.ui.warn(msg % configtarget) | 703 repo.ui.warn(msg % configtarget) |
704 | 704 |
705 deltamode = repository.CG_DELTAMODE_STD | 705 deltamode = repository.CG_DELTAMODE_STD |
706 if forcedeltaparentprev: | 706 if forcedeltaparentprev: |
707 deltamode = repository.CG_DELTAMODE_PREV | 707 deltamode = repository.CG_DELTAMODE_PREV |
708 elif configtarget == 'p1': | 708 elif configtarget == 'p1': |
709 deltamode = repository.CG_DELTAMODE_P1 | 709 deltamode = repository.CG_DELTAMODE_P1 |
710 elif configtarget == 'full': | |
711 deltamode = repository.CG_DELTAMODE_FULL | |
710 | 712 |
711 revisions = store.emitrevisions( | 713 revisions = store.emitrevisions( |
712 nodes, | 714 nodes, |
713 nodesorder=nodesorder, | 715 nodesorder=nodesorder, |
714 revisiondata=True, | 716 revisiondata=True, |