diff mercurial/repoview.py @ 42138:caebe5e7f4bd

repoview: move subsettable in a dedicated module The dictionary got moved in `branchmap` to avoid import cycle. However, we are about to needs it in repoview too. So we introduce a now module to define that that mapping.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 12 Apr 2019 15:41:32 +0200
parents ef0e3cc684b3
children d345627d104b
line wrap: on
line diff
--- a/mercurial/repoview.py	Fri Feb 01 15:51:02 2019 +0100
+++ b/mercurial/repoview.py	Fri Apr 12 15:41:32 2019 +0200
@@ -25,9 +25,9 @@
     This is a standalone function to allow extensions to wrap it.
 
     Because we use the set of immutable changesets as a fallback subset in
-    branchmap (see mercurial.branchmap.subsettable), you cannot set "public"
-    changesets as "hideable". Doing so would break multiple code assertions and
-    lead to crashes."""
+    branchmap (see mercurial.utils.repoviewutils.subsettable), you cannot set
+    "public" changesets as "hideable". Doing so would break multiple code
+    assertions and lead to crashes."""
     obsoletes = obsolete.getrevs(repo, 'obsolete')
     internals = repo._phasecache.getrevset(repo, phases.localhiddenphases)
     internals = frozenset(internals)
@@ -144,7 +144,7 @@
 # function to compute filtered set
 #
 # When adding a new filter you MUST update the table at:
-#     mercurial.branchmap.subsettable
+#     mercurial.utils.repoviewutil.subsettable
 # Otherwise your filter will have to recompute all its branches cache
 # from scratch (very slow).
 filtertable = {'visible': computehidden,