Show More
@@ -346,6 +346,12 b' def has_hardlink():' | |||
|
346 | 346 | finally: |
|
347 | 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 | 355 | @check("rmcwd", "can remove current working directory") |
|
350 | 356 | def has_rmcwd(): |
|
351 | 357 | ocwd = os.getcwd() |
General Comments 0
You need to be logged in to leave comments.
Login now