changeset 40069:b313f2c3b8c6

remotenames: remove unneeded sorted() from revset implementation The order is constrained by the subset.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 05 Oct 2018 21:39:41 +0900
parents fba7428a0ef9
children fd4d59cf2ebb
files hgext/remotenames.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotenames.py	Fri Oct 05 21:36:48 2018 +0900
+++ b/hgext/remotenames.py	Fri Oct 05 21:39:41 2018 +0900
@@ -368,7 +368,7 @@
                 nodes.update(ns.nodes(repo, name))
 
     revs = (cl.rev(n) for n in nodes if cl.hasnode(n))
-    return subset & smartset.baseset(sorted(revs))
+    return subset & smartset.baseset(revs)
 
 @revsetpredicate('remotenames([name])')
 def remotenamesrevset(repo, subset, x):