Show More
@@ -23,10 +23,16 b' def hideablerevs(repo):' | |||||
23 | return obsolete.getrevs(repo, 'obsolete') |
|
23 | return obsolete.getrevs(repo, 'obsolete') | |
24 |
|
24 | |||
25 | def _getstatichidden(repo): |
|
25 | def _getstatichidden(repo): | |
26 | """Cacheable revisions blocking hidden changesets from being filtered. |
|
26 | """Revision to be hidden (disregarding dynamic blocker) | |
27 |
|
27 | |||
28 | Additional non-cached hidden blockers are computed in _getdynamicblockers. |
|
28 | To keep a consistent graph, we cannot hide any revisions with | |
29 | This is a standalone function to help extensions to wrap it.""" |
|
29 | non-hidden descendants. This function computes the set of | |
|
30 | revisions that could be hidden while keeping the graph consistent. | |||
|
31 | ||||
|
32 | A second pass will be done to apply "dynamic blocker" like bookmarks or | |||
|
33 | working directory parents. | |||
|
34 | ||||
|
35 | """ | |||
30 | assert not repo.changelog.filteredrevs |
|
36 | assert not repo.changelog.filteredrevs | |
31 | hideable = hideablerevs(repo) |
|
37 | hideable = hideablerevs(repo) | |
32 | if hideable: |
|
38 | if hideable: |
General Comments 0
You need to be logged in to leave comments.
Login now