##// END OF EJS Templates
hghave: add a check about whitelisted filesystem that supports hardlink...
Jun Wu -
r31576:07f0cddb default
parent child Browse files
Show More
@@ -346,6 +346,12 b' def has_hardlink():'
346 finally:
346 finally:
347 os.unlink(fn)
347 os.unlink(fn)
348
348
349 @check("hardlink-whitelisted", "hardlinks on whitelisted filesystems")
350 def has_hardlink_whitelisted():
351 from mercurial import osutil, util
352 fstype = getattr(osutil, 'getfstype', lambda x: None)('.')
353 return fstype in util._hardlinkfswhitelist
354
349 @check("rmcwd", "can remove current working directory")
355 @check("rmcwd", "can remove current working directory")
350 def has_rmcwd():
356 def has_rmcwd():
351 ocwd = os.getcwd()
357 ocwd = os.getcwd()
General Comments 0
You need to be logged in to leave comments. Login now