Show More
@@ -2325,17 +2325,18 b' def perfbranchmapupdate(ui, repo, base=(' | |||||
2325 | msg = b'benchmark of branchmap with %d revisions with %d new ones\n' |
|
2325 | msg = b'benchmark of branchmap with %d revisions with %d new ones\n' | |
2326 | ui.status(msg % (len(allbaserevs), len(newrevs))) |
|
2326 | ui.status(msg % (len(allbaserevs), len(newrevs))) | |
2327 |
|
2327 | |||
2328 | base = branchmap.branchcache() |
|
2328 | if True: | |
2329 | base.update(repo, allbaserevs) |
|
2329 | base = branchmap.branchcache() | |
2330 |
|
2330 | base.update(repo, allbaserevs) | ||
2331 | def setup(): |
|
|||
2332 | x[0] = base.copy() |
|
|||
2333 |
|
2331 | |||
2334 |
def |
|
2332 | def setup(): | |
2335 | x[0].update(repo, newrevs) |
|
2333 | x[0] = base.copy() | |
2336 |
|
2334 | |||
2337 | timer(bench, setup=setup) |
|
2335 | def bench(): | |
2338 | fm.end() |
|
2336 | x[0].update(repo, newrevs) | |
|
2337 | ||||
|
2338 | timer(bench, setup=setup) | |||
|
2339 | fm.end() | |||
2339 |
|
2340 | |||
2340 | @command(b'perfbranchmapload', [ |
|
2341 | @command(b'perfbranchmapload', [ | |
2341 | (b'f', b'filter', b'', b'Specify repoview filter'), |
|
2342 | (b'f', b'filter', b'', b'Specify repoview filter'), |
General Comments 0
You need to be logged in to leave comments.
Login now