# HG changeset patch # User Na'Tosha Bard # Date 1317892206 -7200 # Node ID f85c76b16f277bac81a4623149a0565ab1136742 # Parent 4e5b7d130e761dd8b57a1524769dac6ac1543d1c largefiles: fix commit of specified file on non-windows diff -r 4e5b7d130e76 -r f85c76b16f27 hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py Wed Oct 05 10:28:39 2011 +0200 +++ b/hgext/largefiles/lfutil.py Thu Oct 06 11:10:06 2011 +0200 @@ -101,13 +101,9 @@ # -- Private worker functions ------------------------------------------ -if os.name == 'nt': - from mercurial import win32 - linkfn = win32.oslink - 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)