comparison mercurial/admin_commands.py @ 51612: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
comparison
equal deleted inserted replaced
51611:2a27b921cd91 51612:a93e60ebea09
45 # Done in two times so the execution is separated from the resolving step 45 # Done in two times so the execution is separated from the resolving step
46 for name, func in sorted(funcs.items(), key=lambda x: x[0]): 46 for name, func in sorted(funcs.items(), key=lambda x: x[0]):
47 ui.status(_(b"running %s\n") % name) 47 ui.status(_(b"running %s\n") % name)
48 errors = func() 48 errors = func()
49 if errors: 49 if errors:
50 ui.warn(_(b"found %d errors\n") % len(errors)) 50 ui.warn(_(b"found %d errors\n") % errors)