Show More
@@ -4,6 +4,7 import typing | |||||
4 |
|
4 | |||
5 | from typing import ( |
|
5 | from typing import ( | |
6 | Any, |
|
6 | Any, | |
|
7 | Iterable, | |||
7 | Iterator, |
|
8 | Iterator, | |
8 | Set, |
|
9 | Set, | |
9 | ) |
|
10 | ) | |
@@ -117,6 +118,9 class gittreemanifest: | |||||
117 | def __iter__(self) -> Iterator[bytes]: |
|
118 | def __iter__(self) -> Iterator[bytes]: | |
118 | return self.iterkeys() |
|
119 | return self.iterkeys() | |
119 |
|
120 | |||
|
121 | def set(self, path: bytes, node: bytes, flags: bytes) -> None: | |||
|
122 | raise NotImplementedError # TODO: implement this | |||
|
123 | ||||
120 | def __setitem__(self, path: bytes, node: bytes) -> None: |
|
124 | def __setitem__(self, path: bytes, node: bytes) -> None: | |
121 | self._pending_changes[path] = node, self.flags(path) |
|
125 | self._pending_changes[path] = node, self.flags(path) | |
122 |
|
126 | |||
@@ -135,6 +139,9 class gittreemanifest: | |||||
135 | def _dirs(self): |
|
139 | def _dirs(self): | |
136 | return pathutil.dirs(self) |
|
140 | return pathutil.dirs(self) | |
137 |
|
141 | |||
|
142 | def dirs(self) -> pathutil.dirs: | |||
|
143 | return self._dirs # TODO: why is there a prpoertycache? | |||
|
144 | ||||
138 | def hasdir(self, dir: bytes) -> bool: |
|
145 | def hasdir(self, dir: bytes) -> bool: | |
139 | return dir in self._dirs |
|
146 | return dir in self._dirs | |
140 |
|
147 | |||
@@ -258,6 +265,11 class gittreemanifest: | |||||
258 | # TODO can this method move out of the manifest iface? |
|
265 | # TODO can this method move out of the manifest iface? | |
259 | raise NotImplementedError |
|
266 | raise NotImplementedError | |
260 |
|
267 | |||
|
268 | def fastdelta( | |||
|
269 | self, base: ByteString, changes: Iterable[tuple[bytes, bool]] | |||
|
270 | ) -> tuple[ByteString, ByteString]: | |||
|
271 | raise NotImplementedError # TODO: implement this | |||
|
272 | ||||
261 | def _walkonetree(self, tree, match, subdir): |
|
273 | def _walkonetree(self, tree, match, subdir): | |
262 | for te in tree: |
|
274 | for te in tree: | |
263 | # TODO: can we prune dir walks with the matcher? |
|
275 | # TODO: can we prune dir walks with the matcher? |
General Comments 0
You need to be logged in to leave comments.
Login now