[PATCH 3 of 3] util: enable hardlink for some BSD-family filesystems
Jun Wu
quark at fb.com
Fri Mar 24 01:32:54 EDT 2017
# HG changeset patch
# User Jun Wu <quark at fb.com>
# Date 1490333510 25200
# Thu Mar 23 22:31:50 2017 -0700
# Node ID be965400bcca7b69bd8e81f53b4ab6b66a847ba0
# Parent 825bb185512c66a43ae6927933196b8356c99798
# Available At https://bitbucket.org/quark-zju/hg-draft
# hg pull https://bitbucket.org/quark-zju/hg-draft -r be965400bcca
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 --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1062,8 +1062,11 @@ def checksignature(func):
'ext3',
'ext4',
+ 'hfs',
'jfs',
'reiserfs',
'tmpfs',
+ 'ufs',
'xfs',
+ 'zfs',
])
More information about the Mercurial-devel
mailing list