changeset 4017:ea6174c96ae1

catch AttributeError in util.checklink There's no symlink function in the os module on windows. Fixes issue468
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 05 Jan 2007 00:01:51 -0200
parents a195f11ed1a2
children dfe87137ed14
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Tue Jan 02 22:40:52 2007 +0100
+++ b/mercurial/util.py	Fri Jan 05 00:01:51 2007 -0200
@@ -722,7 +722,7 @@
         os.symlink(".", name)
         os.unlink(name)
         return True
-    except OSError:
+    except (OSError, AttributeError):
         return False
 
 def linkfunc(path, fallback):