mercurial/commit.py
changeset 49312 fce591256085
parent 48875 6000f5b25c9b
child 51758 421c9b3f2f4e
--- 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]