# HG changeset patch # User Yuya Nishihara # Date 1422539623 -32400 # Node ID 161b8f6e740292ffd79b0ecb3d2e5ae26257aa9d # Parent 936aa82884aba4521b8237bfac7140bde8153e89 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. diff -r 936aa82884ab -r 161b8f6e7402 hgext/evolve.py --- 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]