--- a/mercurial/util.py Sun May 13 13:17:27 2012 +0200 +++ b/mercurial/util.py Sun May 13 13:17:31 2012 +0200 @@ -762,7 +762,7 @@ ofp.close() except: try: os.unlink(temp) - except: pass + except OSError: pass raise return temp