diff setup.py @ 39229:2646b8d66b7b

changegroup: move node sorting into deltagroup() The 3 callers of deltagroup() all sort nodes and convert to integer revs immediately before calling deltagroup(). Stepping back a bit, aside from the constraints on node ordering that always apply (namely that a node must follow its ancestor), it makes sense for sorting to be an implementation detail of the store. Moving the sorting into deltagroup() will open the door for moving sorting into a storage API. The test for the changelog in deltagroup() to impact the sorting method is a bit hacky. I suspect this will be resolved once we establish a formal interface for delta group generation and port changelog to it. Differential Revision: https://phab.mercurial-scm.org/D4224
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 09 Aug 2018 14:31:25 -0700
parents 1ddb296e0dee
children 729082bb9938
line wrap: on
line diff