equal
deleted
inserted
replaced
27 changesets as "hideable". Doing so would break multiple code assertions and |
27 changesets as "hideable". Doing so would break multiple code assertions and |
28 lead to crashes.""" |
28 lead to crashes.""" |
29 return obsolete.getrevs(repo, 'obsolete') |
29 return obsolete.getrevs(repo, 'obsolete') |
30 |
30 |
31 def revealedrevs(repo): |
31 def revealedrevs(repo): |
32 """Non-cacheable revisions blocking hidden changesets from being filtered. |
32 """non-cacheable revisions blocking hidden changesets from being filtered |
33 |
33 """ |
34 Get revisions that will block hidden changesets and are likely to change, |
|
35 but unlikely to create hidden blockers. They won't be cached, so be careful |
|
36 with adding additional computation.""" |
|
37 |
34 |
38 cl = repo.changelog |
35 cl = repo.changelog |
39 blockers = set() |
36 blockers = set() |
40 blockers.update([par.rev() for par in repo[None].parents()]) |
37 blockers.update([par.rev() for par in repo[None].parents()]) |
41 blockers.update([cl.rev(bm) for bm in repo._bookmarks.values()]) |
38 blockers.update([cl.rev(bm) for bm in repo._bookmarks.values()]) |