diff -r e5c1e7aec973 -r 0ab3956540a6 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Wed Jun 21 14:00:50 2023 -0400 +++ b/mercurial/debugcommands.py Thu Jun 22 11:28:17 2023 +0200 @@ -2146,7 +2146,7 @@ ), ) re2 = b'missing' - if util._re2: + if util.has_re2(): re2 = b'available' fm.plain(_(b'checking "re2" regexp engine (%s)\n') % re2) fm.data(re2=bool(util._re2))