Patchwork D7490: repoview: add an explicit set of all filter that show the wc parents

login
register
mail settings
Submitter phabricator
Date Nov. 22, 2019, 9:22 a.m.
Message ID <differential-rev-PHID-DREV-r5ksxh5kerzgbbhyfal3-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43424/
State Superseded
Headers show

Comments

phabricator - Nov. 22, 2019, 9:22 a.m.
marmoute created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/repoview.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -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)