Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 35452:8251c4c4abdc
debuginstall: add a line about re2 availability
Using re2 engine can massively speed up regexp. We make it simpler to check if
it is available in a given install.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 27 Nov 2017 18:48:36 -0500 |
parents | 702e6d2642e7 |
children | 786289423e97 |
comparison
equal
deleted
inserted
replaced
35451:e28dedf4ff43 | 35452:8251c4c4abdc |
---|---|
1171 fm.write('compenginesserver', _('checking available compression engines ' | 1171 fm.write('compenginesserver', _('checking available compression engines ' |
1172 'for wire protocol (%s)\n'), | 1172 'for wire protocol (%s)\n'), |
1173 fm.formatlist([e.name() for e in wirecompengines | 1173 fm.formatlist([e.name() for e in wirecompengines |
1174 if e.wireprotosupport()], | 1174 if e.wireprotosupport()], |
1175 name='compengine', fmt='%s', sep=', ')) | 1175 name='compengine', fmt='%s', sep=', ')) |
1176 re2 = 'missing' | |
1177 if util._re2: | |
1178 re2 = 'available' | |
1179 fm.plain(_('checking "re2" regexp engine (%s)\n') % re2) | |
1180 fm.data(re2=bool(util._re2)) | |
1176 | 1181 |
1177 # templates | 1182 # templates |
1178 p = templater.templatepaths() | 1183 p = templater.templatepaths() |
1179 fm.write('templatedirs', 'checking templates (%s)...\n', ' '.join(p)) | 1184 fm.write('templatedirs', 'checking templates (%s)...\n', ' '.join(p)) |
1180 fm.condwrite(not p, '', _(" no template directories found\n")) | 1185 fm.condwrite(not p, '', _(" no template directories found\n")) |