##// END OF EJS Templates
perf: call _generatechangelog() instead of group()...
Gregory Szorc -
r39013:a1f69477 default
parent child Browse files
Show More
@@ -663,21 +663,20 b' def perfchangegroupchangelog(ui, repo, v'
663 By default, all revisions are added to the changegroup.
663 By default, all revisions are added to the changegroup.
664 """
664 """
665 cl = repo.changelog
665 cl = repo.changelog
666 revs = [cl.lookup(r) for r in repo.revs(rev or 'all()')]
666 nodes = [cl.lookup(r) for r in repo.revs(rev or 'all()')]
667 bundler = changegroup.getbundler(version, repo)
667 bundler = changegroup.getbundler(version, repo)
668
668
669 def lookup(node):
670 # The real bundler reads the revision in order to access the
671 # manifest node and files list. Do that here.
672 cl.read(node)
673 return node
674
675 def d():
669 def d():
676 for chunk in bundler.group(revs, cl, lookup):
670 state, chunks = bundler._generatechangelog(cl, nodes)
671 for chunk in chunks:
677 pass
672 pass
678
673
679 timer, fm = gettimer(ui, opts)
674 timer, fm = gettimer(ui, opts)
680 timer(d)
675
676 # Terminal printing can interfere with timing. So disable it.
677 with ui.configoverride({('progress', 'disable'): True}):
678 timer(d)
679
681 fm.end()
680 fm.end()
682
681
683 @command('perfdirs', formatteropts)
682 @command('perfdirs', formatteropts)
General Comments 0
You need to be logged in to leave comments. Login now