comparison mercurial/interfaces/dirstate.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 5f8b6617e962
children 687b865b95ad
comparison
equal deleted inserted replaced
43075:57875cf423c9 43076:2372284d9457
1 from __future__ import absolute_import, print_function 1 from __future__ import absolute_import, print_function
2 2
3 import contextlib 3 import contextlib
4 4
5 from .. import ( 5 from .. import node as nodemod
6 node as nodemod, 6
7 ) 7 from . import util as interfaceutil
8 8
9 from . import (
10 util as interfaceutil,
11 )
12 9
13 class idirstate(interfaceutil.Interface): 10 class idirstate(interfaceutil.Interface):
14
15 def __init__(opener, ui, root, validate, sparsematchfn): 11 def __init__(opener, ui, root, validate, sparsematchfn):
16 '''Create a new dirstate object. 12 '''Create a new dirstate object.
17 13
18 opener is an open()-like callable that can be used to open the 14 opener is an open()-like callable that can be used to open the
19 dirstate file; root is the root of the directory tracked by 15 dirstate file; root is the root of the directory tracked by