Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/lfutil.py @ 15206:f85c76b16f27
largefiles: fix commit of specified file on non-windows
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Thu, 06 Oct 2011 11:10:06 +0200 |
parents | 8e115063950d |
children | 7c604d8c7e83 |
line wrap: on
line diff
--- 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)