[PATCH STABLE] transaction: really disable hardlink backups (issue4546)

Matt Harbison mharbison at attotech.com
Mon Mar 2 15:35:09 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1425310282 18000
#      Mon Mar 02 10:31:22 2015 -0500
# Branch stable
# Node ID e8ea1900d242b85f112afbce8b1b4a1f260b7d75
# Parent  80af610c4ffbf42240dbd08458a546a009d6a58f
transaction: really disable hardlink backups (issue4546)

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -722,7 +722,7 @@ def copyfile(src, dest, hardlink=False):
         unlink(dest)
     # hardlinks are problematic on CIFS, quietly ignore this flag
     # until we find a way to work around it cleanly (issue4546)
-    if False or hardlink:
+    if False and hardlink:
         try:
             oslink(src, dest)
             return


More information about the Mercurial-devel mailing list