mercurial/util.py
changeset 32291 bd872f64a8ba
parent 32290 2959c3e986e0
child 32300 bd0fd3ff9916
equal deleted inserted replaced
32290:2959c3e986e0 32291:bd872f64a8ba
  1095             raise
  1095             raise
  1096 
  1096 
  1097     return check
  1097     return check
  1098 
  1098 
  1099 # a whilelist of known filesystems where hardlink works reliably
  1099 # a whilelist of known filesystems where hardlink works reliably
  1100 _hardlinkfswhitelist = set([
  1100 _hardlinkfswhitelist = {
  1101     'btrfs',
  1101     'btrfs',
  1102     'ext2',
  1102     'ext2',
  1103     'ext3',
  1103     'ext3',
  1104     'ext4',
  1104     'ext4',
  1105     'hfs',
  1105     'hfs',
  1107     'reiserfs',
  1107     'reiserfs',
  1108     'tmpfs',
  1108     'tmpfs',
  1109     'ufs',
  1109     'ufs',
  1110     'xfs',
  1110     'xfs',
  1111     'zfs',
  1111     'zfs',
  1112 ])
  1112 }
  1113 
  1113 
  1114 def copyfile(src, dest, hardlink=False, copystat=False, checkambig=False):
  1114 def copyfile(src, dest, hardlink=False, copystat=False, checkambig=False):
  1115     '''copy a file, preserving mode and optionally other stat info like
  1115     '''copy a file, preserving mode and optionally other stat info like
  1116     atime/mtime
  1116     atime/mtime
  1117 
  1117