equal
deleted
inserted
replaced
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: |