Mercurial is installed and is the most recent version. There isn't a /etc/apache2/conf/ directory - should I create it, or did you mean something else? (I don't have a revisioncontrol.conf file either).
root@trac-02 /etc/apache2# apt update && apt install -y mercurial
Hit:1 http://deb.debian.org/debian buster InRelease
Get:2 http://security.debian.org buster/updates InRelease [65.4 kB]
Ign:3 http://archive.turnkeylinux.org/debian buster-security InRelease
Ign:4 http://archive.turnkeylinux.org/debian buster InRelease
Hit:5 http://archive.turnkeylinux.org/debian buster-security Release
Hit:7 http://archive.turnkeylinux.org/debian buster Release
Fetched 65.4 kB in 2s (33.4 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
mercurial is already the newest version (4.8.2-1+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@trac-02 /etc/apache2# cat > /etc/apache2/conf/hg.conf <<EOF
> AddHandler cgi-script .cgi
> ScriptAliasMatch ^/hg(.*) /usr/lib/cgi-bin/hgweb.cgi/\$1
> EOF
-bash: /etc/apache2/conf/hg.conf: No such file or directory
root@trac-02 /etc/apache2# sed -i "\|Include /etc/apache2/conf/svn.conf|a \ Include /etc/apache2/conf/hg.conf" /etc/apache2/sites-available/revisioncontrol.conf
sed: can't read /etc/apache2/sites-available/revisioncontrol.conf: No such file or directory
root@trac-02 /etc/apache2# ls -lah
total 92K
drwxr-xr-x 8 root root 4.0K Jul 9 06:25 .
drwxr-xr-x 96 root root 4.0K Jul 18 11:23 ..
-rw-r--r-- 1 root root 7.1K Aug 25 2020 apache2.conf
drwxr-xr-x 2 root root 4.0K Jul 9 06:25 conf-available
drwxr-xr-x 2 root root 4.0K May 20 22:55 conf-enabled
-rw-r--r-- 1 root root 1.8K May 20 22:56 envvars
-rw-r--r-- 1 root root 31K Aug 8 2020 magic
drwxr-xr-x 2 root root 16K Jul 18 11:23 mods-available
drwxr-xr-x 2 root root 4.0K Jul 18 11:23 mods-enabled
-rw-r--r-- 1 root root 320 May 20 22:55 ports.conf
drwxr-xr-x 2 root root 4.0K Jul 19 08:57 sites-available
drwxr-xr-x 2 root root 4.0K Jul 19 09:49 sites-enabled
Mercurial is installed and is
Mercurial is installed and is the most recent version. There isn't a /etc/apache2/conf/ directory - should I create it, or did you mean something else? (I don't have a revisioncontrol.conf file either).
If I navigate to http://trac-02/hg-helloworld, the following is logged in /var/log/apache2/error.log