Index: modules/hgweb/templates/hgrc.erb |
diff --git a/modules/hgweb/templates/hgrc.erb b/modules/hgweb/templates/hgrc.erb |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7beebde0c1354c6ecad0d42d528f668dab3931e4 |
--- /dev/null |
+++ b/modules/hgweb/templates/hgrc.erb |
@@ -0,0 +1,11 @@ |
+[web] |
+contact = <%= @title %>@localhost |
+deny_read = * |
+description = Mercurial Access Control |
+hidden = true |
+ |
+[hooks] |
+pretxnchangegroup.authorCheck = !( hg log --template '{author}\n' -r $HG_NODE: | grep -i -v "$HGUSER") |
+changegroup.updateAuth = python:sitescripts.management.bin.generateHgAuth.hook |
+commit.updateAuth = python:sitescripts.management.bin.generateHgAuth.hook |
+ |