This is a modification of the HgResolver from some other pull request to make use of the hg command server to speed up hg commands.
The mercurial command server is feature of hg to overcome the (relatively long) startup time of the Python interpreter. Instead of starting a new interpreter for each single hg command only a single process is started. All subsequent hg commands are then passed to this running process.
The command server is started by HgResolver the first time a command is run. The same command server is also used for all test cases.
This overall reduces the running time of all hg tests to a few seconds.
This is a modification of the HgResolver from some other pull request to make use of the hg command server to speed up hg commands.
The mercurial command server is feature of hg to overcome the (relatively long) startup time of the Python interpreter. Instead of starting a new interpreter for each single hg command only a single process is started. All subsequent hg commands are then passed to this running process.
The command server is started by
HgResolver
the first time a command is run. The same command server is also used for all test cases.This overall reduces the running time of all hg tests to a few seconds.