# HG changeset patch # User Pierre-Yves David # Date 1574362607 -3600 # Node ID d4c2221240a685050d4b7ec8de30d2efdc151903 # Parent e89e3275f658cb80cbfeb2be1c52e742a20977ee repoview: add an explicit set of all filter that show the wc parents The `visible` set will always show the working copy parents. We record this in a specific set. This will allow to fast path some access. Differential Revision: https://phab.mercurial-scm.org/D7490 diff -r e89e3275f658 -r d4c2221240a6 mercurial/repoview.py --- a/mercurial/repoview.py Sat Nov 23 16:52:44 2019 -0800 +++ b/mercurial/repoview.py Thu Nov 21 19:56:47 2019 +0100 @@ -177,6 +177,9 @@ b'base': computeimpactable, } +# set of filter level that will include the working copy parent no matter what. +filter_has_wc = {b'visible', b'visible-hidden'} + _basefiltername = list(filtertable)