Skip to content
Snippets Groups Projects
Commit f85c76b1 authored by Na'Tosha Bard's avatar Na'Tosha Bard
Browse files

largefiles: fix commit of specified file on non-windows

parent 4e5b7d13
No related branches found
No related tags found
No related merge requests found
......@@ -101,9 +101,5 @@
# -- Private worker functions ------------------------------------------
if os.name == 'nt':
from mercurial import win32
linkfn = win32.oslink
def link(src, dest):
try:
......@@ -108,6 +104,6 @@
def link(src, dest):
try:
linkfn(src, dest)
util.oslink(src, dest)
except OSError:
# If hardlinks fail fall back on copy
shutil.copyfile(src, dest)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment