changeset 32377:32f09ead059b

util: enable hardlink for some BSD-family filesystems Since we can now detect filesystems on FreeBSD and OSX. Add their major filesystems (ufs, zfs for FreeBSD; hfs for OSX) to the hardlink whitelist.
author Jun Wu <quark@fb.com>
date Thu, 23 Mar 2017 22:31:50 -0700
parents 2d501fb60b2d
children e4aefdb58ebe
files mercurial/util.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1061,10 +1061,13 @@
     'ext2',
     'ext3',
     'ext4',
+    'hfs',
     'jfs',
     'reiserfs',
     'tmpfs',
+    'ufs',
     'xfs',
+    'zfs',
 ])
 
 def copyfile(src, dest, hardlink=False, copystat=False, checkambig=False):