# HG changeset patch # User Gregory Szorc # Date 1533572675 25200 # Node ID d2ab0db894650302c2df247137699543b360455c # Parent a1f694779b2f891c522eeb5b833a62bbf29e1c84 changegroup: key off changelogdone We use self._changelogdone for similar checks. Let's make things consistent. Differential Revision: https://phab.mercurial-scm.org/D4135 diff -r a1f694779b2f -r d2ab0db89465 mercurial/changegroup.py --- 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)]