Show More
@@ -2,26 +2,32 from __future__ import annotations | |||
|
2 | 2 | |
|
3 | 3 | import contextlib |
|
4 | 4 | |
|
5 | from typing import ( | |
|
6 | Protocol, | |
|
7 | ) | |
|
8 | ||
|
5 | 9 | from . import util as interfaceutil |
|
6 | 10 | |
|
7 | 11 | |
|
8 |
class idirstate( |
|
|
9 | def __init__( | |
|
10 | opener, | |
|
11 | ui, | |
|
12 | root, | |
|
13 | validate, | |
|
14 | sparsematchfn, | |
|
15 | nodeconstants, | |
|
16 | use_dirstate_v2, | |
|
17 | use_tracked_hint=False, | |
|
18 | ): | |
|
19 | """Create a new dirstate object. | |
|
20 | ||
|
21 | opener is an open()-like callable that can be used to open the | |
|
22 | dirstate file; root is the root of the directory tracked by | |
|
23 | the dirstate. | |
|
24 | """ | |
|
12 | class idirstate(Protocol): | |
|
13 | # TODO: convert these constructor args to fields? | |
|
14 | # def __init__( | |
|
15 | # self, | |
|
16 | # opener, | |
|
17 | # ui, | |
|
18 | # root, | |
|
19 | # validate, | |
|
20 | # sparsematchfn, | |
|
21 | # nodeconstants, | |
|
22 | # use_dirstate_v2, | |
|
23 | # use_tracked_hint=False, | |
|
24 | # ): | |
|
25 | # """Create a new dirstate object. | |
|
26 | # | |
|
27 | # opener is an open()-like callable that can be used to open the | |
|
28 | # dirstate file; root is the root of the directory tracked by | |
|
29 | # the dirstate. | |
|
30 | # """ | |
|
25 | 31 | |
|
26 | 32 | # TODO: all these private methods and attributes should be made |
|
27 | 33 | # public or removed from the interface. |
General Comments 0
You need to be logged in to leave comments.
Login now