Mercurial > evolve
diff hgext/evolve.py @ 1204:161b8f6e7402 stable
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.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 29 Jan 2015 22:53:43 +0900 |
parents | 936aa82884ab |
children | 9b8628e0a142 |
line wrap: on
line diff
--- 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]