comparison mercurial/utils/repoviewutil.py @ 43076:2372284d9457

formatting: blacken the codebase This is using my patch to black (https://github.com/psf/black/pull/826) so we don't un-wrap collection literals. Done with: hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S # skip-blame mass-reformatting only # no-check-commit reformats foo_bar functions Differential Revision: https://phab.mercurial-scm.org/D6971
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 09:45:02 -0400
parents caebe5e7f4bd
children 687b865b95ad
comparison
equal deleted inserted replaced
43075:57875cf423c9 43076:2372284d9457
12 # Nearest subset of filter X is a filter Y so that: 12 # Nearest subset of filter X is a filter Y so that:
13 # * Y is included in X, 13 # * Y is included in X,
14 # * X - Y is as small as possible. 14 # * X - Y is as small as possible.
15 # This create and ordering used for branchmap purpose. 15 # This create and ordering used for branchmap purpose.
16 # the ordering may be partial 16 # the ordering may be partial
17 subsettable = {None: 'visible', 17 subsettable = {
18 'visible-hidden': 'visible', 18 None: 'visible',
19 'visible': 'served', 19 'visible-hidden': 'visible',
20 'served.hidden': 'served', 20 'visible': 'served',
21 'served': 'immutable', 21 'served.hidden': 'served',
22 'immutable': 'base'} 22 'served': 'immutable',
23 'immutable': 'base',
24 }