changeset 26091:60bbd4f9abd1

reachableroots: sort the smartset in the pure version too Changeset be8a4e0800d8 uses smartset lazy sorting for the C version. We need to apply the same to the pure version for consistency. This is fixing the tests with --pure.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 24 Aug 2015 15:40:42 -0700
parents e5f2a2a095cb
children 014044dbd4e8
files mercurial/revset.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Mon Aug 24 23:58:32 2015 -0400
+++ b/mercurial/revset.py	Mon Aug 24 15:40:42 2015 -0700
@@ -123,7 +123,9 @@
         for parent in seen[rev]:
             if parent in reachable:
                 reached(rev)
-    return baseset(sorted(reachable))
+    reachable = baseset(reachable)
+    reachable.sort()
+    return reachable
 
 def reachableroots(repo, roots, heads, includepath=False):
     """return (heads(::<roots> and ::<heads>))