Show More
@@ -712,9 +712,9 b' def perfbundleread(ui, repo, bundlepath,' | |||
|
712 | 712 | fm.end() |
|
713 | 713 | |
|
714 | 714 | @command(b'perfchangegroupchangelog', formatteropts + |
|
715 | [(b'', b'version', b'02', b'changegroup version'), | |
|
715 | [(b'', b'cgversion', b'02', b'changegroup version'), | |
|
716 | 716 | (b'r', b'rev', b'', b'revisions to add to changegroup')]) |
|
717 | def perfchangegroupchangelog(ui, repo, version=b'02', rev=None, **opts): | |
|
717 | def perfchangegroupchangelog(ui, repo, cgversion=b'02', rev=None, **opts): | |
|
718 | 718 | """Benchmark producing a changelog group for a changegroup. |
|
719 | 719 | |
|
720 | 720 | This measures the time spent processing the changelog during a |
@@ -727,7 +727,7 b' def perfchangegroupchangelog(ui, repo, v' | |||
|
727 | 727 | opts = _byteskwargs(opts) |
|
728 | 728 | cl = repo.changelog |
|
729 | 729 | nodes = [cl.lookup(r) for r in repo.revs(rev or b'all()')] |
|
730 | bundler = changegroup.getbundler(version, repo) | |
|
730 | bundler = changegroup.getbundler(cgversion, repo) | |
|
731 | 731 | |
|
732 | 732 | def d(): |
|
733 | 733 | state, chunks = bundler._generatechangelog(cl, nodes) |
General Comments 0
You need to be logged in to leave comments.
Login now