--- a/hgext/git/manifest.py Wed Dec 11 01:00:59 2024 -0500
+++ b/hgext/git/manifest.py Wed Dec 11 02:02:34 2024 -0500
@@ -4,6 +4,7 @@
from typing import (
Any,
+ Iterable,
Iterator,
Set,
)
@@ -117,6 +118,9 @@
def __iter__(self) -> Iterator[bytes]:
return self.iterkeys()
+ def set(self, path: bytes, node: bytes, flags: bytes) -> None:
+ raise NotImplementedError # TODO: implement this
+
def __setitem__(self, path: bytes, node: bytes) -> None:
self._pending_changes[path] = node, self.flags(path)
@@ -135,6 +139,9 @@
def _dirs(self):
return pathutil.dirs(self)
+ def dirs(self) -> pathutil.dirs:
+ return self._dirs # TODO: why is there a prpoertycache?
+
def hasdir(self, dir: bytes) -> bool:
return dir in self._dirs
@@ -258,6 +265,11 @@
# TODO can this method move out of the manifest iface?
raise NotImplementedError
+ def fastdelta(
+ self, base: ByteString, changes: Iterable[tuple[bytes, bool]]
+ ) -> tuple[ByteString, ByteString]:
+ raise NotImplementedError # TODO: implement this
+
def _walkonetree(self, tree, match, subdir):
for te in tree:
# TODO: can we prune dir walks with the matcher?