changeset 32657:9fbd8ad398aa

merge: use scmutil.intrev() to sort ctx objects This moves wctx to the last, but that shouldn't matter. Only the order of stored revisions is important.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 03 Jun 2017 19:01:19 +0900
parents 4bec8cce6a09
children 55ff67ffcead
files mercurial/merge.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/merge.py	Sat Jun 03 18:57:28 2017 +0900
+++ b/mercurial/merge.py	Sat Jun 03 19:01:19 2017 +0900
@@ -801,7 +801,7 @@
 
     # manifests fetched in order are going to be faster, so prime the caches
     [x.manifest() for x in
-     sorted(wctx.parents() + [p2, pa], key=lambda x: x.rev() or -1)]
+     sorted(wctx.parents() + [p2, pa], key=scmutil.intrev)]
 
     if followcopies:
         ret = copies.mergecopies(repo, wctx, p2, pa)