diff -r defc369d705e -r fce591256085 mercurial/commit.py --- a/mercurial/commit.py Wed Jun 01 02:21:41 2022 +0200 +++ b/mercurial/commit.py Wed Jun 01 01:30:48 2022 +0200 @@ -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 @@ 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]