Mercurial > hg-stable
changeset 40418:256b1f0c24e8 stable
changegroup: introduce an explicit linear sorting
We still need to linearize the revisions in some cases, introduce an explicit
`linear` sorting before changing back the default order.
Differential Revision: https://phab.mercurial-scm.org/D5195
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 29 Oct 2018 17:26:25 +0100 |
parents | 8ebb05f747e5 |
children | 634b45317459 |
files | hgext/sqlitestore.py mercurial/revlog.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/sqlitestore.py Wed Oct 31 21:16:54 2018 +0900 +++ b/hgext/sqlitestore.py Mon Oct 29 17:26:25 2018 +0100 @@ -559,7 +559,7 @@ def emitrevisions(self, nodes, nodesorder=None, revisiondata=False, assumehaveparentrevisions=False, deltaprevious=False): - if nodesorder not in ('nodes', 'storage', None): + if nodesorder not in ('nodes', 'storage', 'linear', None): raise error.ProgrammingError('unhandled value for nodesorder: %s' % nodesorder)
--- a/mercurial/revlog.py Wed Oct 31 21:16:54 2018 +0900 +++ b/mercurial/revlog.py Mon Oct 29 17:26:25 2018 +0100 @@ -2206,7 +2206,7 @@ def emitrevisions(self, nodes, nodesorder=None, revisiondata=False, assumehaveparentrevisions=False, deltaprevious=False): - if nodesorder not in ('nodes', 'storage', None): + if nodesorder not in ('nodes', 'storage', 'linear', None): raise error.ProgrammingError('unhandled value for nodesorder: %s' % nodesorder)