Don't fail on clone on win98 (issue1492)
authorMatt Mackall <mpm@selenic.com>
Mon, 16 Feb 2009 17:37:23 -0600
changeset 7778 82f7145b304c
parent 7777 e3425726b80d
child 7779 e899ead7b8ae
Don't fail on clone on win98 (issue1492)
mercurial/util_win32.py
--- a/mercurial/util_win32.py	Sun Feb 15 20:18:29 2009 +0200
+++ b/mercurial/util_win32.py	Mon Feb 16 17:37:23 2009 -0600
@@ -161,6 +161,8 @@
                               'move the file to a different disk drive'))
     except pywintypes.error, details:
         raise WinOSError(details)
+    except NotImplementedError: # Another fake error win Win98
+        raise WinOSError((18, 'CreateHardLink', 'Hardlinking not supported'))
 
 def nlinks(pathname):
     """Return number of hardlinks for the given file."""