# HG changeset patch # User Jun Wu # Date 1490333510 25200 # Node ID 32f09ead059b2d59dc89b6cc121a6aab9a3dbdc2 # Parent 2d501fb60b2d8ad1bb35554b5c88eddf8873c51d 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. diff -r 2d501fb60b2d -r 32f09ead059b mercurial/util.py --- a/mercurial/util.py Thu Mar 23 22:13:02 2017 -0700 +++ b/mercurial/util.py Thu Mar 23 22:31:50 2017 -0700 @@ -1061,10 +1061,13 @@ 'ext2', 'ext3', 'ext4', + 'hfs', 'jfs', 'reiserfs', 'tmpfs', + 'ufs', 'xfs', + 'zfs', ]) def copyfile(src, dest, hardlink=False, copystat=False, checkambig=False):