--- a/mercurial/commands.py Sat Jul 23 10:08:40 2005 -0500 +++ b/mercurial/commands.py Sat Jul 23 10:14:42 2005 -0500 @@ -436,7 +436,7 @@ copyfile) try: os.unlink(os.path.join(dest, ".hg", "dirstate")) - except IOError: + except OSError: pass repo = hg.repository(ui, dest)