--- a/mercurial/posix.py Thu Jul 18 22:46:36 2024 -0400
+++ b/mercurial/posix.py Fri Jul 19 16:38:53 2024 -0400
@@ -386,20 +386,20 @@
return None # on posix platforms, every path is ok
-def getfsmountpoint(dirpath: bytes) -> Optional[bytes]:
+def getfsmountpoint(path: bytes) -> Optional[bytes]:
"""Get the filesystem mount point from a directory (best-effort)
Returns None if we are unsure. Raises OSError on ENOENT, EPERM, etc.
"""
- return getattr(osutil, 'getfsmountpoint', lambda x: None)(dirpath)
+ return getattr(osutil, 'getfsmountpoint', lambda x: None)(path)
-def getfstype(dirpath: bytes) -> Optional[bytes]:
+def getfstype(path: bytes) -> Optional[bytes]:
"""Get the filesystem type name from a directory (best-effort)
Returns None if we are unsure. Raises OSError on ENOENT, EPERM, etc.
"""
- return getattr(osutil, 'getfstype', lambda x: None)(dirpath)
+ return getattr(osutil, 'getfstype', lambda x: None)(path)
def get_password() -> bytes:
@@ -691,7 +691,7 @@
def lookupreg(
key: bytes,
- name: Optional[bytes] = None,
+ valname: Optional[bytes] = None,
scope: Optional[Union[int, Iterable[int]]] = None,
) -> Optional[bytes]:
return None