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