# HG changeset patch # User Raphaël Gomès # Date 2024-06-19 15:26:06 # 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 --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -2810,6 +2810,8 @@ class revlog: 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