mercurial/revset.py
changeset 20424 1da346bad3d8
parent 20418 454c143b9955
child 20427 4a9191ca848e
--- a/mercurial/revset.py	Mon Feb 10 22:56:10 2014 +0100
+++ b/mercurial/revset.py	Thu Feb 06 14:57:25 2014 -0800
@@ -334,7 +334,7 @@
         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)