Mercurial > hg
changeset 38978:d2ab0db89465
changegroup: key off changelogdone
We use self._changelogdone for similar checks. Let's make things
consistent.
Differential Revision: https://phab.mercurial-scm.org/D4135
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 06 Aug 2018 09:24:35 -0700 |
parents | a1f694779b2f |
children | 6d726d1b08cb |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Mon Aug 06 10:43:05 2018 -0700 +++ b/mercurial/changegroup.py Mon Aug 06 09:24:35 2018 -0700 @@ -633,7 +633,7 @@ # order that they're introduced in dramatis personae by the # changelog, so what we do is we sort the non-changelog histories # by the order in which they are used by the changelog. - if self._ellipses and self._clnodetorev: + if self._ellipses and self._changelogdone: key = lambda n: self._clnodetorev[lookup(n)] return [store.rev(n) for n in sorted(nodelist, key=key)]