comparison mercurial/repoview.py @ 24615:9e558b788daa

repoview: update documentation of _getstatichidden In 2f7cb6e6acdd, the function name, role and return was changed. But the documentation was not. This fixes it.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 03 Apr 2015 13:58:12 -0700
parents 2f7cb6e6acdd
children 72d34c5a6614
comparison
equal deleted inserted replaced
24614:241d98d84aed 24615:9e558b788daa
21 21
22 This is a standalone function to help extensions to wrap it.""" 22 This is a standalone function to help extensions to wrap it."""
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:
33 actuallyhidden = {} 39 actuallyhidden = {}
34 getphase = repo._phasecache.phase 40 getphase = repo._phasecache.phase