equal
deleted
inserted
replaced
266 [('C', 'clear', False, 'clear volatile cache between each call.')], |
266 [('C', 'clear', False, 'clear volatile cache between each call.')], |
267 "REVSET") |
267 "REVSET") |
268 def perfrevset(ui, repo, expr, clear=False): |
268 def perfrevset(ui, repo, expr, clear=False): |
269 """benchmark the execution time of a revset |
269 """benchmark the execution time of a revset |
270 |
270 |
271 Use the --clean option if need to evaluate the impact of build volative |
271 Use the --clean option if need to evaluate the impact of build volatile |
272 revisions set cache on the revset execution. Volatile cache hold filtered |
272 revisions set cache on the revset execution. Volatile cache hold filtered |
273 and obsolete related cache.""" |
273 and obsolete related cache.""" |
274 def d(): |
274 def d(): |
275 if clear: |
275 if clear: |
276 repo.invalidatevolatilesets() |
276 repo.invalidatevolatilesets() |