HomePhabricator

hghave: cache the result of gethgversion

Authored by jcristau.

Description

hghave: cache the result of gethgversion

hghave --test-features calls it 90 times, each one calling hg --version
which takes a tenth of a second on my workstation, adding up to about
10s win on test-hghave.t.

Fixes https://bugs.debian.org/939756

Differential Revision: https://phab.mercurial-scm.org/D8092

Details

Committed
jcristauFeb 7 2020, 9:55 AM
Differential Revision
D8092: hghave: cache the result of gethgversion
Parents
rHG3245cdea2c63: clean: delete obsolete unlinking of .hg/graftstate
Branches
Unknown
Tags
Unknown