mercurial/subrepo.py
changeset 52452 9d79ffeed7c0
parent 51859 f4733654f144
child 52605 35cc15fbc523
--- a/mercurial/subrepo.py	Mon Dec 09 00:01:03 2024 -0500
+++ b/mercurial/subrepo.py	Mon Dec 09 00:21:38 2024 -0500
@@ -39,6 +39,9 @@
     util,
     vfs as vfsmod,
 )
+from .interfaces import (
+    status as istatus,
+)
 from .utils import (
     dateutil,
     hashutil,
@@ -332,7 +335,7 @@
     def cat(self, match, fm, fntemplate, prefix, **opts):
         return 1
 
-    def status(self, rev2, **opts):
+    def status(self, rev2, **opts) -> istatus.Status:
         return scmutil.status([], [], [], [], [], [], [])
 
     def diff(self, ui, diffopts, node2, match, prefix, **opts):
@@ -614,7 +617,7 @@
         )
 
     @annotatesubrepoerror
-    def status(self, rev2, **opts):
+    def status(self, rev2, **opts) -> istatus.Status:
         try:
             rev1 = self._state[1]
             ctx1 = self._repo[rev1]
@@ -1971,7 +1974,7 @@
         return 0
 
     @annotatesubrepoerror
-    def status(self, rev2, **opts):
+    def status(self, rev2, **opts) -> istatus.Status:
         rev1 = self._state[1]
         if self._gitmissing() or not rev1:
             # if the repo is missing, return no results