--- a/mercurial/subrepoutil.py Mon Dec 09 00:01:03 2024 -0500
+++ b/mercurial/subrepoutil.py Mon Dec 09 00:21:38 2024 -0500
@@ -52,17 +52,17 @@
context,
localrepo,
match as matchmod,
- scmutil,
subrepo,
ui as uimod,
)
+ from .interfaces import status as istatus
+
# keeps pyflakes happy
assert [
context,
localrepo,
matchmod,
- scmutil,
subrepo,
uimod,
]
@@ -334,7 +334,7 @@
def precommit(
ui: "uimod.ui",
wctx: "context.workingcommitctx",
- status: "scmutil.status",
+ status: "istatus.Status",
match: "matchmod.basematcher",
force: bool = False,
) -> Tuple[List[bytes], Set[bytes], Substate]: