display changeset can take 20sec+?
Alexis S. L. Carvalho
alexis at cecm.usp.br
Tue Jan 23 19:46:15 UTC 2007
Thus spake solo turn:
> what could be the reason that displaying a changeset on hte
> http://archives.keltia.net/hg/freebsd-src6/summary bsd mercurial
> repository, like
> http://archives.keltia.net/hg/freebsd-src6/rev/95f17b862f0b, takes
> more than 20 sec?
The repo probably doesn't have a cache of the branch names used in it,
so hg generates it when it has to look up revision like 95f17b862f0b.
Usually the generated cache is written to disk, so the following lookups
are much faster, but hgweb is probably being run by a user that doesn't
have permissions to write to the repo and hgweb ends up having to
generate this cache every time.
A simple "hg log -r does-not-exist" run by a user that is able to write
to the repo should be enough to generate the branch cache.
Alexis
More information about the Mercurial
mailing list