diff -r 9db77d46de79 -r 24ee91ba9aa8 mercurial/branchmap.py --- a/mercurial/branchmap.py Mon Jan 06 14:15:40 2025 -0500 +++ b/mercurial/branchmap.py Sun Jan 05 21:03:17 2025 -0500 @@ -525,7 +525,7 @@ # invalidate the cache raise ValueError('tip differs') bcache._load_heads(repo, lineiter) - except (IOError, OSError): + except OSError: return None except Exception as inst: @@ -632,7 +632,7 @@ nodecount, ) self._state = STATE_CLEAN - except (IOError, OSError, error.Abort) as inst: + except (OSError, error.Abort) as inst: # Abort may be raised by read only opener, so log and continue repo.ui.debug( b"couldn't write branch cache: %s\n"