diff mercurial/util.py @ 2083:345107e167a0

merge 0.8.1 with revlogng
author Chris Mason <mason@suse.com>
date Sat, 08 Apr 2006 20:10:46 -0400
parents d007df6daf8e e49d0fa38176
children f71e9656524f
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -393,7 +393,7 @@ def copyfiles(src, dst, hardlink=None):
         if hardlink:
             try:
                 os_link(src, dst)
-            except:
+            except (IOError, OSError):
                 hardlink = False
                 shutil.copy(src, dst)
         else: