Mercurial > hg
comparison mercurial/win32.py @ 14235:b9e1b041744f
rename util.os_link to oslink
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 06 May 2011 15:34:34 +0200 |
parents | d51630301241 |
children | e949a008999d |
comparison
equal
deleted
inserted
replaced
14234:600e64004eb5 | 14235:b9e1b041744f |
---|---|
138 _raiseoserror(name) | 138 _raiseoserror(name) |
139 return fi | 139 return fi |
140 finally: | 140 finally: |
141 _kernel32.CloseHandle(fh) | 141 _kernel32.CloseHandle(fh) |
142 | 142 |
143 def os_link(src, dst): | 143 def oslink(src, dst): |
144 try: | 144 try: |
145 if not _kernel32.CreateHardLinkA(dst, src, None): | 145 if not _kernel32.CreateHardLinkA(dst, src, None): |
146 _raiseoserror(src) | 146 _raiseoserror(src) |
147 except AttributeError: # Wine doesn't support this function | 147 except AttributeError: # Wine doesn't support this function |
148 _raiseoserror(src) | 148 _raiseoserror(src) |