# HG changeset patch # User mpm@selenic.com # Date 1122131682 18000 # Node ID b3820ce0e88ab83286fbe838162d1777c63b7b00 # Parent 0c033ef053ab8478bc94f039d71a2e4bb755b126 Fix bug in exception handling for hardlink clone diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -436,7 +436,7 @@ def clone(ui, source, dest=None, **opts) copyfile) try: os.unlink(os.path.join(dest, ".hg", "dirstate")) - except IOError: + except OSError: pass repo = hg.repository(ui, dest)