equal
deleted
inserted
replaced
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 |