diff --git a/mercurial/commit.py b/mercurial/commit.py --- a/mercurial/commit.py +++ b/mercurial/commit.py @@ -4,8 +4,6 @@ # GNU General Public License version 2 or any later version. -import errno - from .i18n import _ from .node import ( hex, @@ -250,11 +248,6 @@ def _process_files(tr, ctx, ms, files, n except OSError: repo.ui.warn(_(b"trouble committing %s!\n") % uipathfn(f)) raise - except IOError as inst: - errcode = getattr(inst, 'errno', errno.ENOENT) - if error or errcode and errcode != errno.ENOENT: - repo.ui.warn(_(b"trouble committing %s!\n") % uipathfn(f)) - raise # update manifest removed = [f for f in removed if f in m1 or f in m2]