On 23/11/2018 15:49, Pulkit Goyal wrote: > > > On Fri, Nov 23, 2018 at 5:19 PM Boris Feld <boris.f...@octobus.net > <mailto:boris.f...@octobus.net>> wrote: > > # HG changeset patch > # User Boris Feld <boris.f...@octobus.net > <mailto:boris.f...@octobus.net>> > # Date 1542935471 -3600 > # Fri Nov 23 02:11:11 2018 +0100 > # Node ID 9f543638d909768a0db0aa779d37817c4b8878ab > # Parent e72da9d014ba91ee4f2fe620a9646404a64d7484 > # EXP-Topic perf-branchmap > # Available At https://bitbucket.org/octobus/mercurial-devel/ > # hg pull > https://bitbucket.org/octobus/mercurial-devel/ -r 9f543638d909 > perf: prewarm the branchmap in perfbranchmapload > > It is not very interesting to have the command randomly failing > because the > branchmap for the tested filter happens to be cold. So we make > sure to have a > valid up to date branchmap before going further. > > The data might still be missing from disk if a subset was > equivalent. See next > changeset for details and fix. > > diff --git a/contrib/perf.py b/contrib/perf.py > --- a/contrib/perf.py > +++ b/contrib/perf.py > @@ -2203,6 +2203,9 @@ def perfbranchmapload(ui, repo, filter=b > repo = repoview.repoview(repo, filter) > else: > repo = repo.unfiltered() > + > + repo.branchmap # make sure we have a relevant, up to date > branchmap > > > Do you want to call this function? According to my understanding it > won't load the branchmap or do something useful. Ho yeah, good catch. > > _______________________________________________ > Mercurial-devel mailing list > Mercurial-devel@mercurial-scm.org > https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
_______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel