Patchwork D1734: repoview: add a new filtername for accessing hidden commits

login
register
mail settings
Submitter phabricator
Date Dec. 25, 2017, 3:08 p.m.
Message ID <d30b13d849a9f659c540addff5a9ff52@localhost.localdomain>
Download mbox | patch
Permalink /patch/26434/
State Not Applicable
Headers show

Comments

phabricator - Dec. 25, 2017, 3:08 p.m.
pulkit updated this revision to Diff 4609.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1734?vs=4584&id=4609

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

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

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: yuja, mercurial-devel

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -143,6 +143,7 @@ 
 # Otherwise your filter will have to recompute all its branches cache
 # from scratch (very slow).
 filtertable = {'visible': 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
@@ -84,6 +84,7 @@ 
 # This create and ordering used for branchmap purpose.
 # the ordering may be partial
 subsettable = {None: 'visible',
+               'visible-hidden': 'visible',
                'visible': 'served',
                'served': 'immutable',
                'immutable': 'base'}