contrib/perf.py
changeset 18644 3e92772d5383
parent 18304 9b6ae29d4801
child 18817 c760acc6f69d
equal deleted inserted replaced
18643:cc28a84db8c9 18644:3e92772d5383
   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()