Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 32291:bd872f64a8ba
cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Feb 2017 16:56:29 -0800 |
parents | 2959c3e986e0 |
children | bd0fd3ff9916 |
comparison
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 |