##// END OF EJS Templates
repoview: skip public parent earlier in _getstatichidden...
Pierre-Yves David -
r24619:ad6dea5d default
parent child Browse files
Show More
@@ -45,9 +45,6 b' def _getstatichidden(repo):'
45 heappush = heapq.heappush
45 heappush = heapq.heappush
46 while heap:
46 while heap:
47 rev = -heappop(heap)
47 rev = -heappop(heap)
48 # Skip nodes which are public (guaranteed to not be hidden)
49 if not getphase(repo, rev):
50 continue
51 # All children have been processed so at that point, if no children
48 # All children have been processed so at that point, if no children
52 # removed 'rev' from the 'hidden' set, 'rev' is going to be hidden.
49 # removed 'rev' from the 'hidden' set, 'rev' is going to be hidden.
53 blocker = rev not in hidden
50 blocker = rev not in hidden
@@ -57,7 +54,9 b' def _getstatichidden(repo):'
57 if blocker:
54 if blocker:
58 # If visible, ensure parent will be visible too
55 # If visible, ensure parent will be visible too
59 hidden.discard(parent)
56 hidden.discard(parent)
60 heappush(heap, -parent)
57 # Skip nodes which are public (guaranteed to not be hidden)
58 if getphase(repo, rev):
59 heappush(heap, -parent)
61 return hidden
60 return hidden
62
61
63 def _getdynamicblockers(repo):
62 def _getdynamicblockers(repo):
General Comments 0
You need to be logged in to leave comments. Login now