diff mercurial/admin_commands.py @ 51491:a93e60ebea09 stable

admin-verify: expect a number of errors to be returned It's the responsibility of the check to handle errors, we only care about the total count to sum up the check's work. We use `admin::verify -c dirstate` to test this path at least somewhat.
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 06 May 2024 16:29:00 +0200
parents d4095f7b000a
children 1c5810ce737e
line wrap: on
line diff
--- a/mercurial/admin_commands.py	Mon May 06 16:16:15 2024 +0200
+++ b/mercurial/admin_commands.py	Mon May 06 16:29:00 2024 +0200
@@ -47,4 +47,4 @@
         ui.status(_(b"running %s\n") % name)
         errors = func()
         if errors:
-            ui.warn(_(b"found %d errors\n") % len(errors))
+            ui.warn(_(b"found %d errors\n") % errors)