mercurial/revset.py
changeset 23163 6f1b8b3f12fd
parent 23162 69524a05a7fa
child 23164 7a42e5d4c418
equal deleted inserted replaced
23162:69524a05a7fa 23163:6f1b8b3f12fd
   368         n = int(n[1])
   368         n = int(n[1])
   369     except (TypeError, ValueError):
   369     except (TypeError, ValueError):
   370         raise error.ParseError(_("~ expects a number"))
   370         raise error.ParseError(_("~ expects a number"))
   371     ps = set()
   371     ps = set()
   372     cl = repo.changelog
   372     cl = repo.changelog
   373     for r in getset(repo, baseset(cl), x):
   373     for r in getset(repo, fullreposet(repo), x):
   374         for i in range(n):
   374         for i in range(n):
   375             r = cl.parentrevs(r)[0]
   375             r = cl.parentrevs(r)[0]
   376         ps.add(r)
   376         ps.add(r)
   377     return subset & ps
   377     return subset & ps
   378 
   378