changegroup: introduce an explicit linear sorting stable
authorBoris Feld <boris.feld@octobus.net>
Mon, 29 Oct 2018 17:26:25 +0100
branchstable
changeset 40444 256b1f0c24e8
parent 40431 8ebb05f747e5
child 40445 634b45317459
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
hgext/sqlitestore.py
mercurial/revlog.py
--- 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)