##// END OF EJS Templates
repoview: directly skip public head in _getstatichidden...
Pierre-Yves David -
r24618:cde57a8d default
parent child Browse files
Show More
@@ -38,7 +38,8 b' def _getstatichidden(repo):'
38 38 if hidden:
39 39 getphase = repo._phasecache.phase
40 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 43 heapq.heapify(heap)
43 44 heappop = heapq.heappop
44 45 heappush = heapq.heappush
General Comments 0
You need to be logged in to leave comments. Login now