306 # because the caller expects a mutable manifest. |
307 # because the caller expects a mutable manifest. |
307 return memgittreemanifestctx(self._repo, self._tree) |
308 return memgittreemanifestctx(self._repo, self._tree) |
308 |
309 |
309 def find(self, path: bytes) -> tuple[bytes, bytes]: |
310 def find(self, path: bytes) -> tuple[bytes, bytes]: |
310 return self.read().find(path) |
311 return self.read().find(path) |
|
312 |
|
313 def node(self) -> bytes: |
|
314 raise NotImplementedError |
|
315 |
|
316 def readdelta(self, shallow: bool = False): |
|
317 raise NotImplementedError |
|
318 |
|
319 def read_any_fast_delta( |
|
320 self, |
|
321 valid_bases: Collection[int] | None = None, |
|
322 *, |
|
323 shallow: bool = False, |
|
324 ): |
|
325 raise NotImplementedError |
|
326 |
|
327 def read_delta_parents(self, *, shallow: bool = False, exact: bool = True): |
|
328 raise NotImplementedError |
|
329 |
|
330 def read_delta_new_entries(self, *, shallow: bool = False): |
|
331 raise NotImplementedError |
311 |
332 |
312 |
333 |
313 class memgittreemanifestctx(repository.imanifestrevisionwritable): |
334 class memgittreemanifestctx(repository.imanifestrevisionwritable): |
314 def __init__(self, repo, tree): |
335 def __init__(self, repo, tree): |
315 self._repo = repo |
336 self._repo = repo |