commit: catch IOError
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 30 Jan 2007 21:11:10 -0200
changeset 4060 82eb0fafb56d
parent 4059 431f3c1d3a37
child 4061 40030c1b6bc6
commit: catch IOError filecommit can still raise IOError if we're on a filesystem without support for symlinks.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Tue Jan 30 19:36:56 2007 -0200
+++ b/mercurial/localrepo.py	Tue Jan 30 21:11:10 2007 -0200
@@ -748,7 +748,7 @@
             try:
                 new[f] = self.filecommit(f, m1, m2, linkrev, tr, changed)
                 m1.set(f, is_exec(f), is_link(f))
-            except OSError:
+            except (OSError, IOError):
                 if use_dirstate:
                     self.ui.warn(_("trouble committing %s!\n") % f)
                     raise