# HG changeset patch # User Yuya Nishihara # Date 1432457995 -32400 # Node ID 99d3ca7d67e4a782b86670c46031f101cb70e1b7 # Parent 5909ac39b86a74810e8065f9e9a4c8f3a86e7924 revrange: clean up meaningless reconstruction of sets They just exist for deduplication that was removed by the previous patch. diff -r 5909ac39b86a -r 99d3ca7d67e4 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)