Show More
@@ -18,7 +18,6 b' from mercurial.dirstateutils import (' | |||
|
18 | 18 | ) |
|
19 | 19 | from mercurial.interfaces import ( |
|
20 | 20 | dirstate as intdirstate, |
|
21 | util as interfaceutil, | |
|
22 | 21 | ) |
|
23 | 22 | |
|
24 | 23 | from . import gitutil |
@@ -73,8 +72,7 b' if pygit2:' | |||
|
73 | 72 | } |
|
74 | 73 | |
|
75 | 74 | |
|
76 | @interfaceutil.implementer(intdirstate.idirstate) | |
|
77 | class gitdirstate: | |
|
75 | class gitdirstate(intdirstate.idirstate): | |
|
78 | 76 | def __init__(self, ui, vfs, gitrepo, use_dirstate_v2): |
|
79 | 77 | self._ui = ui |
|
80 | 78 | self._root = os.path.dirname(vfs.base) |
@@ -11,7 +11,6 b' import collections' | |||
|
11 | 11 | import contextlib |
|
12 | 12 | import os |
|
13 | 13 | import stat |
|
14 | import typing | |
|
15 | 14 | import uuid |
|
16 | 15 | |
|
17 | 16 | from .i18n import _ |
@@ -38,7 +37,6 b' from .dirstateutils import (' | |||
|
38 | 37 | |
|
39 | 38 | from .interfaces import ( |
|
40 | 39 | dirstate as intdirstate, |
|
41 | util as interfaceutil, | |
|
42 | 40 | ) |
|
43 | 41 | |
|
44 | 42 | parsers = policy.importmod('parsers') |
@@ -136,7 +134,7 b' CHANGE_TYPE_PARENTS = "parents"' | |||
|
136 | 134 | CHANGE_TYPE_FILES = "files" |
|
137 | 135 | |
|
138 | 136 | |
|
139 | class DirState: | |
|
137 | class dirstate(intdirstate.idirstate): | |
|
140 | 138 | # used by largefile to avoid overwritting transaction callback |
|
141 | 139 | _tr_key_suffix = b'' |
|
142 | 140 | |
@@ -1808,9 +1806,3 b' class DirState:' | |||
|
1808 | 1806 | entry = self.get_entry(f) |
|
1809 | 1807 | if not entry.p1_tracked: |
|
1810 | 1808 | yield missing_from_ds % (f, node.short(p1)) |
|
1811 | ||
|
1812 | ||
|
1813 | dirstate = interfaceutil.implementer(intdirstate.idirstate)(DirState) | |
|
1814 | ||
|
1815 | if typing.TYPE_CHECKING: | |
|
1816 | dirstate = DirState |
General Comments 0
You need to be logged in to leave comments.
Login now