# HG changeset patch # User Yuya Nishihara # Date 2017-03-25 09:22:27 # Node ID b33e352c365cc0cc05186b71e920100f233c7e6c # Parent 6a2959acae1ab9e4cb187cebc4ca34b130056b04 hghave: use util.getfstype diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -348,8 +348,8 @@ def has_hardlink(): @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")