mercurial/context.py
changeset 52640 24ee91ba9aa8
parent 52452 9d79ffeed7c0
child 52643 5cc8deb96b48
--- a/mercurial/context.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/mercurial/context.py	Sun Jan 05 21:03:17 2025 -0500
@@ -963,7 +963,7 @@
     def isbinary(self):
         try:
             return stringutil.binary(self.data())
-        except IOError:
+        except OSError:
             return False
 
     def isexec(self):
@@ -1854,7 +1854,7 @@
                         fixup.append((f, cache_info))
                     else:
                         clean.append(f)
-            except (IOError, OSError):
+            except OSError:
                 # A file become inaccessible in between? Mark it as deleted,
                 # matching dirstate behavior (issue5584).
                 # The dirstate has more complex behavior around whether a