--- a/mercurial/logcmdutil.py Tue Feb 04 14:02:20 2025 -0500
+++ b/mercurial/logcmdutil.py Thu Jan 30 18:22:01 2025 +0100
@@ -22,6 +22,9 @@
)
from .i18n import _
+from .interfaces.types import (
+ MatcherT,
+)
from .node import wdirrev
from .thirdparty import attr
@@ -1083,9 +1086,7 @@
def makewalker(
repo: Any,
wopts: walkopts,
-) -> Tuple[
- smartset.abstractsmartset, Optional[Callable[[Any], matchmod.basematcher]]
-]:
+) -> Tuple[smartset.abstractsmartset, Optional[Callable[[Any], MatcherT]]]:
"""Build (revs, makefilematcher) to scan revision/file history
- revs is the smartset to be traversed.