##// END OF EJS Templates
perf.perflog: add option to follow renames
Alexander Solovyov -
r9932:2fcbef9a default
parent child Browse files
Show More
@@ -103,9 +103,10 b' def perfparents(ui, repo):'
103 def perflookup(ui, repo, rev):
103 def perflookup(ui, repo, rev):
104 timer(lambda: len(repo.lookup(rev)))
104 timer(lambda: len(repo.lookup(rev)))
105
105
106 def perflog(ui, repo):
106 def perflog(ui, repo, **opts):
107 ui.pushbuffer()
107 ui.pushbuffer()
108 timer(lambda: commands.log(ui, repo, rev=[], date='', user=''))
108 timer(lambda: commands.log(ui, repo, rev=[], date='', user='',
109 copies=opts.get('rename')))
109 ui.popbuffer()
110 ui.popbuffer()
110
111
111 def perftemplating(ui, repo):
112 def perftemplating(ui, repo):
@@ -144,7 +145,8 b' cmdtable = {'
144 'perftags': (perftags, []),
145 'perftags': (perftags, []),
145 'perfdirstate': (perfdirstate, []),
146 'perfdirstate': (perfdirstate, []),
146 'perfdirstatedirs': (perfdirstate, []),
147 'perfdirstatedirs': (perfdirstate, []),
147 'perflog': (perflog, []),
148 'perflog': (perflog,
149 [('', 'rename', False, 'ask log to follow renames')]),
148 'perftemplating': (perftemplating, []),
150 'perftemplating': (perftemplating, []),
149 'perfdiffwd': (perfdiffwd, []),
151 'perfdiffwd': (perfdiffwd, []),
150 }
152 }
General Comments 0
You need to be logged in to leave comments. Login now