# HG changeset patch # User Raphaël Gomès # Date 1718810766 -7200 # Node ID b04011ca6effcd041723985651ae5a68ffbab4f5 # Parent 384016e91947021f21eaec66d997dfd37d2c72dc revlog: add an early return for getting sidedata No point in trying to fetch sidedata if there isn't a sidedata file. diff -r 384016e91947 -r b04011ca6eff mercurial/revlog.py --- a/mercurial/revlog.py Wed Jun 19 17:19:20 2024 +0200 +++ b/mercurial/revlog.py Wed Jun 19 17:26:06 2024 +0200 @@ -2810,6 +2810,8 @@ def _sidedata(self, rev): """Return the sidedata for a given revision number.""" + if self._sidedatafile is None: + return {} sidedata_end = None if self._docket is not None: sidedata_end = self._docket.sidedata_end