Mercurial > hg
comparison mercurial/changegroup.py @ 39000:4cff37564006
changegroup: combine _generatefiles() into generatefiles()
These were split out in a06aab274aef as part of moving the
narrow code into core. They don't need to be separate
functions.
Differential Revision: https://phab.mercurial-scm.org/D4192
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 07 Aug 2018 12:44:56 -0700 |
parents | b83e9c503f2f |
children | a6e1ff40e335 |
comparison
equal
deleted
inserted
replaced
38999:b83e9c503f2f | 39000:4cff37564006 |
---|---|
1020 links[fnode] = lr | 1020 links[fnode] = lr |
1021 return links | 1021 return links |
1022 else: | 1022 else: |
1023 linknodes = normallinknodes | 1023 linknodes = normallinknodes |
1024 | 1024 |
1025 return self._generatefiles(changedfiles, linknodes, commonrevs, source) | |
1026 | |
1027 def _generatefiles(self, changedfiles, linknodes, commonrevs, source): | |
1028 repo = self._repo | 1025 repo = self._repo |
1029 cl = repo.changelog | 1026 cl = repo.changelog |
1030 progress = repo.ui.makeprogress(_('bundling'), unit=_('files'), | 1027 progress = repo.ui.makeprogress(_('bundling'), unit=_('files'), |
1031 total=len(changedfiles)) | 1028 total=len(changedfiles)) |
1032 for i, fname in enumerate(sorted(changedfiles)): | 1029 for i, fname in enumerate(sorted(changedfiles)): |