# HG changeset patch # User Lucas Moscovicz # Date 2014-02-06 22:57:25 # Node ID 1da346bad3d8e79ee346bde9abb5cb6ea5d3ed1f # Parent ada289dfceb08dd9d6d8e0d4aed8e8c02846b24e revset: minor changes adding baseset to revsets Changed bits of code to work with baseset implementations. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -334,7 +334,7 @@ def ancestorspec(repo, subset, x, n): raise error.ParseError(_("~ expects a number")) ps = set() cl = repo.changelog - for r in getset(repo, cl, x): + for r in getset(repo, baseset(cl), x): for i in range(n): r = cl.parentrevs(r)[0] ps.add(r)