Mercurial > hg
comparison mercurial/repoview.py @ 35495:07fdac1d5c66
repoview: add a new filtername for accessing hidden commits
This patch adds a new filter 'visible-hidden' for repository and will be used to
return a repo object with user passed revisions unhidden. Unlike the
directaccess extension in fb-hgext and previous series adding the functionality,
this time we introduce only one new filter as whether to warn user or not is
handled by scmutil.unhidehashlikerevs().
Differential Revision: https://phab.mercurial-scm.org/D1734
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 18 Dec 2017 17:50:02 +0530 |
parents | 3c9c05a38d78 |
children | 5b592ac502ef |
comparison
equal
deleted
inserted
replaced
35494:dd911f95cbda | 35495:07fdac1d5c66 |
---|---|
141 # When adding a new filter you MUST update the table at: | 141 # When adding a new filter you MUST update the table at: |
142 # mercurial.branchmap.subsettable | 142 # mercurial.branchmap.subsettable |
143 # Otherwise your filter will have to recompute all its branches cache | 143 # Otherwise your filter will have to recompute all its branches cache |
144 # from scratch (very slow). | 144 # from scratch (very slow). |
145 filtertable = {'visible': computehidden, | 145 filtertable = {'visible': computehidden, |
146 'visible-hidden': computehidden, | |
146 'served': computeunserved, | 147 'served': computeunserved, |
147 'immutable': computemutable, | 148 'immutable': computemutable, |
148 'base': computeimpactable} | 149 'base': computeimpactable} |
149 | 150 |
150 def filterrevs(repo, filtername, visibilityexceptions=None): | 151 def filterrevs(repo, filtername, visibilityexceptions=None): |