hgext/largefiles/lfutil.py
changeset 15171 547da6115d1d
parent 15170 c1a4a3220711
child 15188 8e115063950d
equal deleted inserted replaced
15170:c1a4a3220711 15171:547da6115d1d
   101 
   101 
   102 # -- Private worker functions ------------------------------------------
   102 # -- Private worker functions ------------------------------------------
   103 
   103 
   104 if os.name == 'nt':
   104 if os.name == 'nt':
   105     from mercurial import win32
   105     from mercurial import win32
   106     try:
   106     linkfn = win32.oslink
   107         linkfn = win32.oslink
       
   108     except:
       
   109         linkfn = win32.os_link
       
   110 else:
       
   111     linkfn = os.link
       
   112 
   107 
   113 def link(src, dest):
   108 def link(src, dest):
   114     try:
   109     try:
   115         linkfn(src, dest)
   110         linkfn(src, dest)
   116     except OSError:
   111     except OSError: