pulkit updated this revision to Diff 4095. pulkit edited the summary of this revision.
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D1287?vs=4053&id=4095 REVISION DETAIL https://phab.mercurial-scm.org/D1287 AFFECTED FILES mercurial/branchmap.py mercurial/repoview.py CHANGE DETAILS diff --git a/mercurial/repoview.py b/mercurial/repoview.py --- a/mercurial/repoview.py +++ b/mercurial/repoview.py @@ -85,6 +85,14 @@ assert not repo.changelog.filteredrevs return _computeperfiltername(repo, 'visible') +def computewarnhidden(repo): + assert not repo.changelog.filteredrevs + return _computeperfiltername(repo, 'visible-warnhidden') + +def computeallowhidden(repo): + assert not repo.changelog.filteredrevs + return _computeperfiltername(repo, 'visible-allowhidden') + def computeunserved(repo): """compute the set of revision that should be filtered when used a server @@ -144,6 +152,8 @@ # Otherwise your filter will have to recompute all its branches cache # from scratch (very slow). filtertable = {'visible': computehidden, + 'visible-warnhidden': computewarnhidden, + 'visible-allowhidden': computeallowhidden, 'served': computeunserved, 'immutable': computemutable, 'base': computeimpactable} diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -86,7 +86,9 @@ subsettable = {None: 'visible', 'visible': 'served', 'served': 'immutable', - 'immutable': 'base'} + 'immutable': 'base', + 'visible-warnhidden': 'visible', + 'visible-allowhidden': 'visible'} def updatecache(repo): cl = repo.changelog To: pulkit, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel