##// END OF EJS Templates
perf: add a command to test addremove performance...
Siddharth Agarwal -
r18871:a2d4ab4f default
parent child Browse files
Show More
@@ -54,6 +54,15 b' def perfstatus(ui, repo, **opts):'
54 # False))))
54 # False))))
55 timer(lambda: sum(map(len, repo.status(**opts))))
55 timer(lambda: sum(map(len, repo.status(**opts))))
56
56
57 @command('perfaddremove')
58 def perfaddremove(ui, repo):
59 try:
60 oldquiet = repo.ui.quiet
61 repo.ui.quiet = True
62 timer(lambda: scmutil.addremove(repo, dry_run=True))
63 finally:
64 repo.ui.quiet = oldquiet
65
57 def clearcaches(cl):
66 def clearcaches(cl):
58 # behave somewhat consistently across internal API changes
67 # behave somewhat consistently across internal API changes
59 if util.safehasattr(cl, 'clearcaches'):
68 if util.safehasattr(cl, 'clearcaches'):
General Comments 0
You need to be logged in to leave comments. Login now