contrib/perf.py
changeset 18091 f7f8159caad3
parent 18080 486bfb200b3f
child 18236 819520ca213d
equal deleted inserted replaced
18090:9abc55ef85b5 18091:f7f8159caad3
    80 
    80 
    81 def perfancestorset(ui, repo, revset):
    81 def perfancestorset(ui, repo, revset):
    82     revs = repo.revs(revset)
    82     revs = repo.revs(revset)
    83     heads = repo.changelog.headrevs()
    83     heads = repo.changelog.headrevs()
    84     def d():
    84     def d():
    85         s = set(repo.changelog.ancestors(heads))
    85         s = repo.changelog.ancestors(heads)
    86         for rev in revs:
    86         for rev in revs:
    87             rev in s
    87             rev in s
    88     timer(d)
    88     timer(d)
    89 
    89 
    90 def perfdirstate(ui, repo):
    90 def perfdirstate(ui, repo):