##// END OF EJS Templates
perf: add option to perfstatus to get the status of unknown files...
Siddharth Agarwal -
r18033:00ac420f default
parent child Browse files
Show More
@@ -40,11 +40,11 b' def perfwalk(ui, repo, *pats):'
40 except Exception:
40 except Exception:
41 timer(lambda: len(list(cmdutil.walk(repo, pats, {}))))
41 timer(lambda: len(list(cmdutil.walk(repo, pats, {}))))
42
42
43 def perfstatus(ui, repo, *pats):
43 def perfstatus(ui, repo, **opts):
44 #m = match.always(repo.root, repo.getcwd())
44 #m = match.always(repo.root, repo.getcwd())
45 #timer(lambda: sum(map(len, repo.dirstate.status(m, [], False, False,
45 #timer(lambda: sum(map(len, repo.dirstate.status(m, [], False, False,
46 # False))))
46 # False))))
47 timer(lambda: sum(map(len, repo.status())))
47 timer(lambda: sum(map(len, repo.status(**opts))))
48
48
49 def clearcaches(cl):
49 def clearcaches(cl):
50 # behave somewhat consistently across internal API changes
50 # behave somewhat consistently across internal API changes
@@ -238,7 +238,9 b' cmdtable = {'
238 'perfnodelookup': (perfnodelookup, []),
238 'perfnodelookup': (perfnodelookup, []),
239 'perfparents': (perfparents, []),
239 'perfparents': (perfparents, []),
240 'perfstartup': (perfstartup, []),
240 'perfstartup': (perfstartup, []),
241 'perfstatus': (perfstatus, []),
241 'perfstatus': (perfstatus,
242 [('u', 'unknown', False,
243 'ask status to look for unknown files')]),
242 'perfwalk': (perfwalk, []),
244 'perfwalk': (perfwalk, []),
243 'perfmanifest': (perfmanifest, []),
245 'perfmanifest': (perfmanifest, []),
244 'perfchangeset': (perfchangeset, []),
246 'perfchangeset': (perfchangeset, []),
General Comments 0
You need to be logged in to leave comments. Login now