Mercurial > hg
comparison mercurial/changegroup.py @ 40430:6a917075535a
storage: also use `deltamode argument` for ifiledata
Now that lower level uses such argument, we can propagate the change to higher
layers.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 09 Oct 2018 23:26:35 +0200 |
parents | 2c5835b4246b |
children | 968dd7e02ac5 |
comparison
equal
deleted
inserted
replaced
40427:59a870a4ad6e | 40430:6a917075535a |
---|---|
695 progress = None | 695 progress = None |
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 deltamode = repository.CG_DELTAMODE_STD | |
701 if forcedeltaparentprev: | |
702 deltamode = repository.CG_DELTAMODE_PREV | |
703 | |
700 revisions = store.emitrevisions( | 704 revisions = store.emitrevisions( |
701 nodes, | 705 nodes, |
702 nodesorder=nodesorder, | 706 nodesorder=nodesorder, |
703 revisiondata=True, | 707 revisiondata=True, |
704 assumehaveparentrevisions=not ellipses, | 708 assumehaveparentrevisions=not ellipses, |
705 deltaprevious=forcedeltaparentprev) | 709 deltamode=deltamode) |
706 | 710 |
707 for i, revision in enumerate(revisions): | 711 for i, revision in enumerate(revisions): |
708 if progress: | 712 if progress: |
709 progress.update(i + 1) | 713 progress.update(i + 1) |
710 | 714 |