admin-verify: fix error message handling stable
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 06 May 2024 16:16:15 +0200
branchstable
changeset 51614 2a27b921cd91
parent 51613 dcb00d5c397a
child 51615 a93e60ebea09
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.
mercurial/admin/verify.py
--- 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