Show More
@@ -38,7 +38,8 b' def _getstatichidden(repo):' | |||||
38 | if hidden: |
|
38 | if hidden: | |
39 | getphase = repo._phasecache.phase |
|
39 | getphase = repo._phasecache.phase | |
40 | getparentrevs = repo.changelog.parentrevs |
|
40 | getparentrevs = repo.changelog.parentrevs | |
41 | heap = [-r for r in repo.changelog.headrevs()] |
|
41 | # Skip heads which are public (guaranteed to not be hidden) | |
|
42 | heap = [-r for r in repo.changelog.headrevs() if getphase(repo, r)] | |||
42 | heapq.heapify(heap) |
|
43 | heapq.heapify(heap) | |
43 | heappop = heapq.heappop |
|
44 | heappop = heapq.heappop | |
44 | heappush = heapq.heappush |
|
45 | heappush = heapq.heappush |
General Comments 0
You need to be logged in to leave comments.
Login now