evolve: use 3.2+ fullreposet to evaluate argument set (issue4515)
getset() has no compatibility wrapper for old-style argument and we don't
want to add more hacks in Mercurial core.
--- a/hgext/evolve.py Mon Mar 02 20:12:00 2015 +0100
+++ b/hgext/evolve.py Thu Jan 29 22:53:43 2015 +0900
@@ -502,7 +502,7 @@
"""``precursors(set)``
Immediate precursors of changesets in set.
"""
- s = revset.getset(repo, range(len(repo)), x)
+ s = revset.getset(repo, revset.fullreposet(repo), x)
cs = _precursors(repo, s)
return [r for r in subset if r in cs]
@@ -512,7 +512,7 @@
"""``allprecursors(set)``
Transitive precursors of changesets in set.
"""
- s = revset.getset(repo, range(len(repo)), x)
+ s = revset.getset(repo, revset.fullreposet(repo), x)
cs = _allprecursors(repo, s)
return [r for r in subset if r in cs]
@@ -522,7 +522,7 @@
"""``successors(set)``
Immediate successors of changesets in set.
"""
- s = revset.getset(repo, range(len(repo)), x)
+ s = revset.getset(repo, revset.fullreposet(repo), x)
cs = _successors(repo, s)
return [r for r in subset if r in cs]
@@ -531,7 +531,7 @@
"""``allsuccessors(set)``
Transitive successors of changesets in set.
"""
- s = revset.getset(repo, range(len(repo)), x)
+ s = revset.getset(repo, revset.fullreposet(repo), x)
cs = _allsuccessors(repo, s)
return [r for r in subset if r in cs]