##// END OF EJS Templates
re2: fix reporting of availability in `hg debuginstall`...
marmoute -
r51582:a45460e2 stable
parent child Browse files
Show More
@@ -2137,7 +2137,7 b' def debuginstall(ui, **opts):'
2137 ),
2137 ),
2138 )
2138 )
2139 re2 = b'missing'
2139 re2 = b'missing'
2140 if util._re2:
2140 if util.has_re2():
2141 re2 = b'available'
2141 re2 = b'available'
2142 fm.plain(_(b'checking "re2" regexp engine (%s)\n') % re2)
2142 fm.plain(_(b'checking "re2" regexp engine (%s)\n') % re2)
2143 fm.data(re2=bool(util._re2))
2143 fm.data(re2=bool(util._re2))
@@ -2210,6 +2210,13 b' except ImportError:'
2210 _re2 = False
2210 _re2 = False
2211
2211
2212
2212
2213 def has_re2():
2214 """return True is re2 is available, False otherwise"""
2215 if _re2 is None:
2216 _re._checkre2()
2217 return _re2
2218
2219
2213 class _re:
2220 class _re:
2214 @staticmethod
2221 @staticmethod
2215 def _checkre2():
2222 def _checkre2():
General Comments 0
You need to be logged in to leave comments. Login now