Patchwork D1141: repoview: add two new filternames to be used for accessing hidden commits

login
register
mail settings
Submitter phabricator
Date Oct. 18, 2017, 4:22 p.m.
Message ID <5d11eda1edadc0b1f6c7cd7b16279c11@localhost.localdomain>
Download mbox | patch
Permalink /patch/25200/
State Not Applicable
Headers show

Comments

phabricator - Oct. 18, 2017, 4:22 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG308681291d11: repoview: add two new filternames to be used for accessing hidden commits (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1141?vs=2903&id=2991

REVISION DETAIL
  https://phab.mercurial-scm.org/D1141

AFFECTED FILES
  mercurial/branchmap.py
  mercurial/repoview.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, indygreg
Cc: dlax, mercurial-devel

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -139,6 +139,8 @@ 
 # Otherwise your filter will have to recompute all its branches cache
 # from scratch (very slow).
 filtertable = {'visible': computehidden,
+               'visible-warnhidden': computehidden,
+               'visible-hidden': computehidden,
                '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-hidden': 'visible'}
 
 def updatecache(repo):
     cl = repo.changelog