Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/hgweb/templates/hgrc.erb

Issue 29323409: Issue 2867 - Introduce module hgweb and corresponding server role (Closed)
Patch Set: Created Aug. 10, 2015, 8:15 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/hgweb/manifests/init.pp ('k') | modules/hgweb/templates/sitescripts.ini.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+
« no previous file with comments | « modules/hgweb/manifests/init.pp ('k') | modules/hgweb/templates/sitescripts.ini.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld