# HG changeset patch # User Pierre-Yves David # Date 1686186310 -7200 # Node ID 485c9410b75af9b08f90983fbd5402870a2f2d9b # Parent bfb6404089a588efe6384767cb7f2110053ae1b8 deltafind: issue debug information when we fast-path rivial case too More debug options never hurts. diff -r bfb6404089a5 -r 485c9410b75a mercurial/revlogutils/deltas.py --- a/mercurial/revlogutils/deltas.py Thu Jun 08 03:11:51 2023 +0200 +++ b/mercurial/revlogutils/deltas.py Thu Jun 08 03:05:10 2023 +0200 @@ -1302,7 +1302,20 @@ # not calling candelta since only one revision needs test, also to # avoid overhead fetching flags again. if not revinfo.textlen or revinfo.flags & REVIDX_RAWTEXT_CHANGING_FLAGS: - return self._fullsnapshotinfo(fh, revinfo, target_rev) + deltainfo = self._fullsnapshotinfo(fh, revinfo, target_rev) + if gather_debug: + end = util.timer() + dbg['duration'] = end - start + dbg[ + 'delta-base' + ] = deltainfo.base # pytype: disable=attribute-error + dbg['search_round_count'] = 0 + dbg['using-cached-base'] = True + dbg['delta_try_count'] = 0 + dbg['type'] = b"full" + dbg['snapshot-depth'] = 0 + self._dbg_process_data(dbg) + return deltainfo if excluded_bases is None: excluded_bases = set()