mercurial/cmdutil.py
changeset 51711 7601978f9e9f
parent 51699 ca7bde5dbafb
child 51725 278af66e6595
--- a/mercurial/cmdutil.py	Thu Jul 18 19:01:55 2024 -0400
+++ b/mercurial/cmdutil.py	Thu Jul 18 19:55:51 2024 -0400
@@ -1112,7 +1112,7 @@
         ui.status(_(b"changed branch on %d changesets\n") % len(replacements))
 
 
-def findrepo(p):
+def findrepo(p: bytes) -> Optional[bytes]:
     while not os.path.isdir(os.path.join(p, b".hg")):
         oldp, p = p, os.path.dirname(p)
         if p == oldp: