mercurial/util.py
changeset 2050 e49d0fa38176
parent 2026 24c604628867
child 2054 e18beba54a7e
child 2083 345107e167a0
--- a/mercurial/util.py	Wed Apr 05 19:07:50 2006 +0200
+++ b/mercurial/util.py	Wed Apr 05 17:17:07 2006 -0700
@@ -393,7 +393,7 @@
         if hardlink:
             try:
                 os_link(src, dst)
-            except:
+            except (IOError, OSError):
                 hardlink = False
                 shutil.copy(src, dst)
         else: