equal
deleted
inserted
replaced
59 if pr is not None: |
59 if pr is not None: |
60 cs.add(pr) |
60 cs.add(pr) |
61 return cs |
61 return cs |
62 |
62 |
63 def _revsetprecursors(repo, subset, x): |
63 def _revsetprecursors(repo, subset, x): |
64 s = revset.getset(repo, range(len(repo)), x) |
64 s = revset.getset(repo, revset.baseset(range(len(repo))), x) |
65 cs = _precursors(repo, s) |
65 cs = _precursors(repo, s) |
66 return [r for r in subset if r in cs] |
66 return revset.baseset([r for r in subset if r in cs]) |
67 |
67 |
68 revset.symbols['_fastobs_precursors'] = _revsetprecursors |
68 revset.symbols['_fastobs_precursors'] = _revsetprecursors |
69 |
69 |
70 |
70 |
71 @_strategy('boxfill', default=True) |
71 @_strategy('boxfill', default=True) |