changeset 43766:d4c2221240a6

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 21 Nov 2019 19:56:47 +0100
parents e89e3275f658
children f3b23d5c15fd
files mercurial/repoview.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)