Mercurial > hg-stable
changeset 30435:605e3b126d46
perf: unbust perfbdiff --alldata
This broke in f84fc6a92817 due to a refactored manifest API.
The fix is a bit hacky - perfbdiff doesn't yet support tree manifests
for example. But it gets the job done.
A test has been added for --alldata so this doesn't happen again.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 17 Nov 2016 08:52:52 -0800 |
parents | 03f7aa2bd0e3 |
children | ede7bc45bf0a |
files | contrib/perf.py tests/test-contrib-perf.t |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Thu Nov 17 20:57:09 2016 +0900 +++ b/contrib/perf.py Thu Nov 17 08:52:52 2016 -0800 @@ -781,9 +781,9 @@ if opts['alldata']: # Load revisions associated with changeset. ctx = repo[rev] - mtext = repo.manifest.revision(ctx.manifestnode()) + mtext = repo.manifestlog._revlog.revision(ctx.manifestnode()) for pctx in ctx.parents(): - pman = repo.manifest.revision(pctx.manifestnode()) + pman = repo.manifestlog._revlog.revision(pctx.manifestnode()) textpairs.append((pman, mtext)) # Load filelog revisions by iterating manifest delta.