comparison mercurial/revlog.py @ 40444: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 b0fbd1792e2d
children 4fe63b573791
comparison
equal deleted inserted replaced
40431:8ebb05f747e5 40444:256b1f0c24e8
2204 res.append(self.datafile) 2204 res.append(self.datafile)
2205 return res 2205 return res
2206 2206
2207 def emitrevisions(self, nodes, nodesorder=None, revisiondata=False, 2207 def emitrevisions(self, nodes, nodesorder=None, revisiondata=False,
2208 assumehaveparentrevisions=False, deltaprevious=False): 2208 assumehaveparentrevisions=False, deltaprevious=False):
2209 if nodesorder not in ('nodes', 'storage', None): 2209 if nodesorder not in ('nodes', 'storage', 'linear', None):
2210 raise error.ProgrammingError('unhandled value for nodesorder: %s' % 2210 raise error.ProgrammingError('unhandled value for nodesorder: %s' %
2211 nodesorder) 2211 nodesorder)
2212 2212
2213 if nodesorder is None and not self._generaldelta: 2213 if nodesorder is None and not self._generaldelta:
2214 nodesorder = 'storage' 2214 nodesorder = 'storage'