changeset 25384:99d3ca7d67e4

revrange: clean up meaningless reconstruction of sets They just exist for deduplication that was removed by the previous patch.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 24 May 2015 17:59:55 +0900
parents 5909ac39b86a
children a26a55406c0a
files mercurial/scmutil.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)