mercurial/branchmap.py
changeset 42138 caebe5e7f4bd
parent 42134 f0203c3406e7
child 42173 07faf5c65190
child 42184 09fd338522fa
--- a/mercurial/branchmap.py	Fri Feb 01 15:51:02 2019 +0100
+++ b/mercurial/branchmap.py	Fri Apr 12 15:41:32 2019 +0200
@@ -23,28 +23,17 @@
     util,
 )
 from .utils import (
+    repoviewutil,
     stringutil,
 )
 
+subsettable = repoviewutil. subsettable
+
 calcsize = struct.calcsize
 pack_into = struct.pack_into
 unpack_from = struct.unpack_from
 
 
-### Nearest subset relation
-# Nearest subset of filter X is a filter Y so that:
-# * Y is included in X,
-# * X - Y is as small as possible.
-# This create and ordering used for branchmap purpose.
-# the ordering may be partial
-subsettable = {None: 'visible',
-               'visible-hidden': 'visible',
-               'visible': 'served',
-               'served.hidden': 'served',
-               'served': 'immutable',
-               'immutable': 'base'}
-
-
 class BranchMapCache(object):
     """mapping of filtered views of repo with their branchcache"""
     def __init__(self):