##// END OF EJS Templates
git: add missing `repository.imanifestdict` methods to `gittreemanifest`...
Matt Harbison -
r53391:db6efd74 default
parent child Browse files
Show More
@@ -4,6 +4,7 import typing
4 4
5 5 from typing import (
6 6 Any,
7 Iterable,
7 8 Iterator,
8 9 Set,
9 10 )
@@ -117,6 +118,9 class gittreemanifest:
117 118 def __iter__(self) -> Iterator[bytes]:
118 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 124 def __setitem__(self, path: bytes, node: bytes) -> None:
121 125 self._pending_changes[path] = node, self.flags(path)
122 126
@@ -135,6 +139,9 class gittreemanifest:
135 139 def _dirs(self):
136 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 145 def hasdir(self, dir: bytes) -> bool:
139 146 return dir in self._dirs
140 147
@@ -258,6 +265,11 class gittreemanifest:
258 265 # TODO can this method move out of the manifest iface?
259 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 273 def _walkonetree(self, tree, match, subdir):
262 274 for te in tree:
263 275 # TODO: can we prune dir walks with the matcher?
General Comments 0
You need to be logged in to leave comments. Login now