# HG changeset patch # User Martijn Pieters # Date 1535741921 -3600 # Node ID 5644f7c8982e805e53f56fcbfe0322e9de58a934 # Parent 4aa04d009167b937d386a72e8ffe58b69f7e458a branchmap: remove redundant sort There is absoluty no benefit in sorting a list that's being merged into a set on the next line. The changelog.ancestors() call later on also doesn't benefit from a sorted sequence of revs. Differential Revision: https://phab.mercurial-scm.org/D5111 diff -r 4aa04d009167 -r 5644f7c8982e mercurial/branchmap.py --- a/mercurial/branchmap.py Thu Oct 11 03:15:04 2018 +0200 +++ b/mercurial/branchmap.py Fri Aug 31 19:58:41 2018 +0100 @@ -296,7 +296,6 @@ # This have been tested True on all internal usage of this function. # run it again in case of doubt # assert not (set(bheadrevs) & set(newheadrevs)) - newheadrevs.sort() bheadset.update(newheadrevs) # This prunes out two kinds of heads - heads that are superseded by