# HG changeset patch # User Yuya Nishihara # Date 2018-10-05 12:39:41 # Node ID b313f2c3b8c6af8e0e79149d9645fc6791b10d7b # Parent fba7428a0ef973144f2aa1c0b332b4a7b698b4e3 remotenames: remove unneeded sorted() from revset implementation The order is constrained by the subset. diff --git a/hgext/remotenames.py b/hgext/remotenames.py --- a/hgext/remotenames.py +++ b/hgext/remotenames.py @@ -368,7 +368,7 @@ def _revsetutil(repo, subset, x, rtypes) 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):