Mercurial > hg
comparison mercurial/branchmap.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 | d0db41af73c0 |
children | a011e4140435 |
comparison
equal
deleted
inserted
replaced
35494:dd911f95cbda | 35495:07fdac1d5c66 |
---|---|
82 # * Y is included in X, | 82 # * Y is included in X, |
83 # * X - Y is as small as possible. | 83 # * X - Y is as small as possible. |
84 # This create and ordering used for branchmap purpose. | 84 # This create and ordering used for branchmap purpose. |
85 # the ordering may be partial | 85 # the ordering may be partial |
86 subsettable = {None: 'visible', | 86 subsettable = {None: 'visible', |
87 'visible-hidden': 'visible', | |
87 'visible': 'served', | 88 'visible': 'served', |
88 'served': 'immutable', | 89 'served': 'immutable', |
89 'immutable': 'base'} | 90 'immutable': 'base'} |
90 | 91 |
91 def updatecache(repo): | 92 def updatecache(repo): |