mercurial: enable MQ extension

This commit is contained in:
2025-06-04 18:57:47 +00:00
parent 8bce4b6fba
commit bc293726ee
3 changed files with 20 additions and 3 deletions

View File

@@ -849,9 +849,6 @@ in
marksman.sandbox.whitelistPwd = true;
mercurial.sandbox.net = "clearnet";
mercurial.sandbox.whitelistPwd = true;
mesa-demos.sandbox.whitelistDri = true;
mesa-demos.sandbox.whitelistWayland = true;
mesa-demos.sandbox.whitelistX = true;

View File

@@ -123,6 +123,7 @@
./megapixels.nix
./megapixels-next.nix
./mepo.nix
./mercurial.nix
./mimeo
./mimetype.nix
./mmcli.nix

View File

@@ -0,0 +1,19 @@
{ ... }:
{
sane.programs.mercurial = {
sandbox.net = "clearnet";
sandbox.whitelistPwd = true;
sandbox.extraHomePaths = [
# even with `whitelistPwd`, hg has to crawl *up* the path -- which isn't necessarily in the sandbox -- to locate the repo root.
"dev"
"ref"
];
fs.".config/hg/hgrc".symlink.text = ''
[extensions]
# Mercurial Queues (MQ) extension adds patch-stack support to mercurial.
# MQ is shipped in mercurial, but not enabled by default.
# it's a port of some git extension, idk which.
mq =
'';
};
}