--- 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: