tests/hghave.py
changeset 36942 bf73012877a4
parent 36941 3f7bbce8fbaa
child 37338 cbc4425e81b5
equal deleted inserted replaced
36941:3f7bbce8fbaa 36942:bf73012877a4
   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")