diff -r 293e1763982e -r a45460e235a2 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Sat Jun 17 04:05:18 2023 +0200 +++ b/mercurial/debugcommands.py Sat Jun 17 04:05:53 2023 +0200 @@ -2137,7 +2137,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))