catch AttributeError in util.checklink
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Fri, 05 Jan 2007 00:01:51 -0200
changeset 4017 ea6174c96ae1
parent 4016 a195f11ed1a2
child 4018 dfe87137ed14
catch AttributeError in util.checklink There's no symlink function in the os module on windows. Fixes issue468
mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -722,7 +722,7 @@ def checklink(path):
         os.symlink(".", name)
         os.unlink(name)
         return True
-    except OSError:
+    except (OSError, AttributeError):
         return False
 
 def linkfunc(path, fallback):