diff mercurial/windows.py @ 35513:c4caf530b1c7

util: add a function to show the mount point of the filesystem For now, this is Windows only, since Linux doesn't have the value in its statfs structure, and I don't have a BSD system to test with.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 29 Dec 2017 22:54:14 -0500
parents 2062f7c2ac83
children 0cb09c322647
line wrap: on
line diff
--- a/mercurial/windows.py	Fri Dec 29 22:15:37 2017 -0500
+++ b/mercurial/windows.py	Fri Dec 29 22:54:14 2017 -0500
@@ -32,6 +32,7 @@
 osutil = policy.importmod(r'osutil')
 
 executablepath = win32.executablepath
+getfsmountpoint = win32.getvolumename
 getfstype = win32.getfstype
 getuser = win32.getuser
 hidewindow = win32.hidewindow