remotenames: remove unneeded sorted() from revset implementation
authorYuya Nishihara <yuya@tcha.org>
Fri, 05 Oct 2018 21:39:41 +0900
changeset 40068 b313f2c3b8c6
parent 40067 fba7428a0ef9
child 40069 fd4d59cf2ebb
remotenames: remove unneeded sorted() from revset implementation The order is constrained by the subset.
hgext/remotenames.py
--- 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):