Patchwork D7476: repoview: add a 'devel.debug.repo-filter' option

login
register
mail settings
Submitter phabricator
Date Nov. 23, 2019, 4:06 a.m.
Message ID <e793d106ccfaa56ad129f441807a1c52@localhost.localdomain>
Download mbox | patch
Permalink /patch/43454/
State Not Applicable
Headers show

Comments

phabricator - Nov. 23, 2019, 4:06 a.m.
Closed by commit rHG0ddd97e45cc6: repoview: add a &#039;devel.debug.repo-filter&#039; option (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7476?vs=18283&id=18328

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7476/new/

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

AFFECTED FILES
  mercurial/configitems.py
  mercurial/repoview.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -217,6 +217,9 @@ 
     hidden-state and must be visible. They are dynamic and hence we should not
     cache it's result"""
     if filtername not in repo.filteredrevcache:
+        if repo.ui.configbool(b'devel', b'debug.repo-filters'):
+            msg = b'debug.filters: computing revision filter for "%s"\n'
+            repo.ui.debug(msg % filtername)
         func = filtertable[filtername]
         if visibilityexceptions:
             return func(repo.unfiltered, visibilityexceptions)
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -433,6 +433,9 @@ 
     b'devel', b'debug.extensions', default=False,
 )
 coreconfigitem(
+    b'devel', b'debug.repo-filters', default=False,
+)
+coreconfigitem(
     b'devel', b'debug.peer-request', default=False,
 )
 coreconfigitem(