Based on the answer by DustWolf, this works on Ubuntu under WSL (Windows Subsystem for Linux) using a Windows drive letter share mounted using Microsoft's WSL drvfs file system driver, i.e., hg running locally on a shared drive.
not trusting file /mnt/x/repo/.hg/hgrc from untrusted user root, group rootMercurial Distributed SCM (version 5.3.1)(see https://mercurial-scm.org for more information)Copyright (C) 2005-2020 Matt Mackall and othersThis is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Create trust.rc on the WSL machine:
sudo touch /etc/mercurial/hgrc.d/trust.rcsudo nano /etc/mercurial/hgrc.d/trust.rcAdd:
[trusted]groups = rootusers = rootSave trust.rc and hg should now trust the repo hgrc as WSL's drvfs driver mounts the share as root:root.