From c5b7914e012ed7d92ef5f941ca507d74f3a883de Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Mon, 12 Oct 2026 16:28:42 +0900 Subject: [PATCH] Document in doc/RUNNING_TESTS that chg makes the Mercurial tests much faster --- doc/RUNNING_TESTS | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/RUNNING_TESTS b/doc/RUNNING_TESTS index 166a82f10..8a4b0c9d1 100644 --- a/doc/RUNNING_TESTS +++ b/doc/RUNNING_TESTS @@ -34,6 +34,21 @@ unpacked into {redmine_root}/tmp/test. If the test repositories are not present, the tests that need them will be skipped. +Speeding up Mercurial tests +=========================== + +Unlike the commands of other SCMs such as Git and Subversion, the hg command +is slow to start because it has to start the Python interpreter every time it +is invoked. Since the Mercurial tests invoke hg several hundred times, most +of their run time is spent on starting the command. + +chg, a client for the Mercurial command server, avoids this startup cost. If +chg is installed on your system, you can make the Mercurial tests much faster +by adding the following setting to config/configuration.yml: + + test: + scm_mercurial_command: chg + Creating a test LDAP database ============================= -- 2.55.0