--- a/mercurial/posix.py Sun Apr 24 17:52:46 2011 -0500
+++ b/mercurial/posix.py Sat Apr 23 00:51:25 2011 +0300
@@ -59,7 +59,7 @@
os.unlink(f)
try:
os.symlink(data, f)
- except:
+ except OSError:
# failed to make a link, rewrite file
fp = open(f, "w")
fp.write(data)