Mercurial > public > mercurial-scm > hg
diff mercurial/windows.py @ 35509:beede158ea8a
util: move getfstype() to the platform modules
This makes room for implementing on Windows using ctypes.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 30 Dec 2017 21:07:03 -0500 |
parents | 0fa781320203 |
children | 2062f7c2ac83 |
line wrap: on
line diff
--- a/mercurial/windows.py Fri Dec 22 23:17:04 2017 +0800 +++ b/mercurial/windows.py Sat Dec 30 21:07:03 2017 -0500 @@ -226,6 +226,13 @@ def checklink(path): return False +def getfstype(dirpath): + '''Get the filesystem type name from a directory (best-effort) + + Returns None if we are unsure. Raises OSError on ENOENT, EPERM, etc. + ''' + return None + def setbinary(fd): # When run without console, pipes may expose invalid # fileno(), usually set to -1.