changeset 31674:b33e352c365c

hghave: use util.getfstype
author Yuya Nishihara <yuya@tcha.org>
date Sat, 25 Mar 2017 18:22:27 +0900
parents 6a2959acae1a
children da191ba2576f
files tests/hghave.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Sun Mar 26 19:57:17 2017 -0700
+++ b/tests/hghave.py	Sat Mar 25 18:22:27 2017 +0900
@@ -348,8 +348,8 @@
 
 @check("hardlink-whitelisted", "hardlinks on whitelisted filesystems")
 def has_hardlink_whitelisted():
-    from mercurial import osutil, util
-    fstype = getattr(osutil, 'getfstype', lambda x: None)('.')
+    from mercurial import util
+    fstype = util.getfstype('.')
     return fstype in util._hardlinkfswhitelist
 
 @check("rmcwd", "can remove current working directory")