comparison tests/check-perf-code.py @ 42138:caebe5e7f4bd

repoview: move subsettable in a dedicated module The dictionary got moved in `branchmap` to avoid import cycle. However, we are about to needs it in repoview too. So we introduce a now module to define that that mapping.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 12 Apr 2019 15:41:32 +0200
parents eb8a8af4cbd0
children 2372284d9457
comparison
equal deleted inserted replaced
42137:d086ba387ae8 42138:caebe5e7f4bd
8 import sys 8 import sys
9 9
10 # write static check patterns here 10 # write static check patterns here
11 perfpypats = [ 11 perfpypats = [
12 [ 12 [
13 (r'(branchmap|repoview)\.subsettable', 13 (r'(branchmap|repoview|repoviewutil)\.subsettable',
14 "use getbranchmapsubsettable() for early Mercurial"), 14 "use getbranchmapsubsettable() for early Mercurial"),
15 (r'\.(vfs|svfs|opener|sopener)', 15 (r'\.(vfs|svfs|opener|sopener)',
16 "use getvfs()/getsvfs() for early Mercurial"), 16 "use getvfs()/getsvfs() for early Mercurial"),
17 (r'ui\.configint', 17 (r'ui\.configint',
18 "use getint() instead of ui.configint() for early Mercurial"), 18 "use getint() instead of ui.configint() for early Mercurial"),