##// END OF EJS Templates
perf: add a command to test copies.pathcopies perf...
Siddharth Agarwal -
r18877:2e9fe9e2 default
parent child Browse files
Show More
@@ -2,7 +2,7 b''
2 '''helper extension to measure performance'''
2 '''helper extension to measure performance'''
3
3
4 from mercurial import cmdutil, scmutil, util, match, commands, obsolete
4 from mercurial import cmdutil, scmutil, util, match, commands, obsolete
5 from mercurial import repoview, branchmap, merge
5 from mercurial import repoview, branchmap, merge, copies
6 import time, os, sys
6 import time, os, sys
7
7
8 cmdtable = {}
8 cmdtable = {}
@@ -158,6 +158,14 b' def perfmergecalculate(ui, repo, rev):'
158 acceptremote=True)
158 acceptremote=True)
159 timer(d)
159 timer(d)
160
160
161 @command('perfpathcopies', [], "REV REV")
162 def perfpathcopies(ui, repo, rev1, rev2):
163 ctx1 = scmutil.revsingle(repo, rev1, rev1)
164 ctx2 = scmutil.revsingle(repo, rev2, rev2)
165 def d():
166 copies.pathcopies(ctx1, ctx2)
167 timer(d)
168
161 @command('perfmanifest')
169 @command('perfmanifest')
162 def perfmanifest(ui, repo):
170 def perfmanifest(ui, repo):
163 def d():
171 def d():
General Comments 0
You need to be logged in to leave comments. Login now