transaction: fix uncaught ENOENT (
issue1724)
The opener raises an IOError on errors where transaction expects an
OSError.
--- a/mercurial/transaction.py Thu Jul 09 20:49:02 2009 +0200
+++ b/mercurial/transaction.py Tue Jul 07 19:24:52 2009 +0200
@@ -35,7 +35,7 @@
try:
fn = opener(f).name
os.unlink(fn)
- except OSError, inst:
+ except IOError, inst:
if inst.errno != errno.ENOENT:
raise
os.unlink(journal)