equal
deleted
inserted
replaced
370 |
370 |
371 @check("hardlink-whitelisted", "hardlinks on whitelisted filesystems") |
371 @check("hardlink-whitelisted", "hardlinks on whitelisted filesystems") |
372 def has_hardlink_whitelisted(): |
372 def has_hardlink_whitelisted(): |
373 from mercurial import util |
373 from mercurial import util |
374 try: |
374 try: |
375 fstype = util.getfstype('.') |
375 fstype = util.getfstype(b'.') |
376 except OSError: |
376 except OSError: |
377 return False |
377 return False |
378 return fstype in util._hardlinkfswhitelist |
378 return fstype in util._hardlinkfswhitelist |
379 |
379 |
380 @check("rmcwd", "can remove current working directory") |
380 @check("rmcwd", "can remove current working directory") |