changeset 51490:2a27b921cd91 stable

admin-verify: fix error message handling `dirstate.verify` used to return tuples but does not anymore, it returns the pre-formatted error message, which is a nicer interface anyway.
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 06 May 2024 16:16:15 +0200
parents dcb00d5c397a
children a93e60ebea09
files mercurial/admin/verify.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/admin/verify.py	Mon May 06 12:31:29 2024 +0200
+++ b/mercurial/admin/verify.py	Mon May 06 16:16:15 2024 +0200
@@ -38,7 +38,7 @@
     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, parent1, narrow_matcher):
-        ui.warn(err[0] % err[1:])
+        ui.warn(err)
         errors += 1
 
     return errors