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
--- 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)