revrange: clean up meaningless reconstruction of sets
authorYuya Nishihara <yuya@tcha.org>
Sun, 24 May 2015 17:59:55 +0900
changeset 25384 99d3ca7d67e4
parent 25383 5909ac39b86a
child 25385 a26a55406c0a
revrange: clean up meaningless reconstruction of sets They just exist for deduplication that was removed by the previous patch.
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Sun May 24 17:53:22 2015 +0900
+++ b/mercurial/scmutil.py	Sun May 24 17:59:55 2015 +0900
@@ -742,8 +742,7 @@
                     # by far the most common case: revs = ["-1:0"]
                     l = revset.baseset(rangeiter)
                     continue
-                newrevs = set(rangeiter)
-                l = l + revset.baseset(sorted(newrevs, reverse=start > end))
+                l = l + revset.baseset(rangeiter)
                 continue
             elif spec and spec in repo: # single unquoted rev
                 rev = revfix(repo, spec, None)
@@ -755,8 +754,7 @@
         # fall through to new-style queries if old-style fails
         m = revset.match(repo.ui, spec, repo)
         if l:
-            dl = [r for r in m(repo)]
-            l = l + revset.baseset(dl)
+            l = l + m(repo)
         else:
             l = m(repo)