mercurial/vfs.py
changeset 51893 22e1924e9402
parent 51892 fa9e8a6521c1
child 51894 992fcf6b2473
--- a/mercurial/vfs.py	Fri Sep 20 20:16:12 2024 -0400
+++ b/mercurial/vfs.py	Sat Sep 21 13:53:05 2024 -0400
@@ -504,7 +504,7 @@
     def isfileorlink_checkdir(
         self,
         dircache: MutableMapping[bytes, bool],
-        path: Optional[bytes] = None,
+        path: bytes,
     ) -> bool:
         """return True if the path is a regular file or a symlink and
         the directories along the path are "normal", that is
@@ -513,8 +513,6 @@
         Ignores the `_audit` setting, and checks the directories regardless.
         `dircache` is used to cache the directory checks.
         """
-        # TODO: Should be a None check on 'path', or shouldn't default to None
-        #  because of the immediate call to util.localpath().
         try:
             for prefix in pathutil.finddirs_rev_noroot(util.localpath(path)):
                 if prefix in dircache: