# HG changeset patch # User Raphaël Gomès # Date 2024-05-06 10:31:29 # Node ID dcb00d5c397aa67aa3b0793d693c1e0f02a8d13a # Parent c1b6b8b03e48caa3f81efc2000d282278c8a1425 admin-verify: pass p1 down to the dirstate function This was forgotten and can break with certain kinds of corruption. diff --git a/mercurial/admin/verify.py b/mercurial/admin/verify.py --- a/mercurial/admin/verify.py +++ b/mercurial/admin/verify.py @@ -37,8 +37,7 @@ def check_dirstate(ui, repo, **options): is_narrow = requirements.NARROW_REQUIREMENT in repo.requirements narrow_matcher = repo.narrowmatch() if is_narrow else None - - for err in repo.dirstate.verify(m1, m2, narrow_matcher): + for err in repo.dirstate.verify(m1, m2, parent1, narrow_matcher): ui.warn(err[0] % err[1:]) errors += 1