Show More
@@ -12,12 +12,18 b' import util' | |||
|
12 | 12 | import obsolete, bookmarks, revset |
|
13 | 13 | |
|
14 | 14 | |
|
15 | def hideablerevs(repo): | |
|
16 | """Revisions candidates to be hidden | |
|
17 | ||
|
18 | This is a standalone function to help extensions to wrap it.""" | |
|
19 | return obsolete.getrevs(repo, 'obsolete') | |
|
20 | ||
|
15 | 21 | def computehidden(repo): |
|
16 | 22 | """compute the set of hidden revision to filter |
|
17 | 23 | |
|
18 | 24 | During most operation hidden should be filtered.""" |
|
19 | 25 | assert not repo.changelog.filteredrevs |
|
20 |
hideable = |
|
|
26 | hideable = hideablerevs(repo) | |
|
21 | 27 | if hideable: |
|
22 | 28 | cl = repo.changelog |
|
23 | 29 | firsthideable = min(hideable) |
General Comments 0
You need to be logged in to leave comments.
Login now