# HG changeset patch # User Alexis S. L. Carvalho # Date 1167962511 7200 # Node ID ea6174c96ae1609f700e6881a47dad46e5b7b077 # Parent a195f11ed1a2563172f5d573986ab4af425f0ffd catch AttributeError in util.checklink There's no symlink function in the os module on windows. Fixes issue468 diff --git a/mercurial/util.py b/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):