##// END OF EJS Templates
hghave: use util.getfstype
Yuya Nishihara -
r31674:b33e352c default
parent child Browse files
Show More
@@ -348,8 +348,8 b' def has_hardlink():'
348
348
349 @check("hardlink-whitelisted", "hardlinks on whitelisted filesystems")
349 @check("hardlink-whitelisted", "hardlinks on whitelisted filesystems")
350 def has_hardlink_whitelisted():
350 def has_hardlink_whitelisted():
351 from mercurial import osutil, util
351 from mercurial import util
352 fstype = getattr(osutil, 'getfstype', lambda x: None)('.')
352 fstype = util.getfstype('.')
353 return fstype in util._hardlinkfswhitelist
353 return fstype in util._hardlinkfswhitelist
354
354
355 @check("rmcwd", "can remove current working directory")
355 @check("rmcwd", "can remove current working directory")
General Comments 0
You need to be logged in to leave comments. Login now