diff -r d086ba387ae8 -r caebe5e7f4bd mercurial/branchmap.py --- 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):