repoview: add an explicit set of all filter that show the wc parents
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 21 Nov 2019 19:56:47 +0100
changeset 43766 d4c2221240a6
parent 43765 e89e3275f658
child 43767 f3b23d5c15fd
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
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)