diff hg-web/dev.sh @ 249:c5129452493e

[deploy] Bundle Mercurial with hg-web Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Tue, 04 Aug 2026 04:16:45 -0700
parents a8d6435dc021
children
line wrap: on
line diff
--- a/hg-web/dev.sh	Tue Aug 04 02:44:06 2026 -0700
+++ b/hg-web/dev.sh	Tue Aug 04 04:16:45 2026 -0700
@@ -33,6 +33,7 @@
 fi
 
 server="$(rlocation _main/hg-web/hg_web_server)"
+hg_binary="$(rlocation _main/third_party/mercurial/runtime/bin/hg)"
 runfiles_workspace="$(dirname "$(dirname "$server")")"
 hg_pid=""
 server_pid=""
@@ -54,7 +55,10 @@
 trap cleanup EXIT
 trap 'exit 130' INT TERM
 
-hg --repository "$workspace" serve \
+HGRCPATH= "$hg_binary" \
+  --config "web.allow-push=" \
+  --config "web.deny-push=*" \
+  --repository "$workspace" serve \
   --address 127.0.0.1 \
   --port 4444 \
   --accesslog - \