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: Issue 2867 - Now the complete patch-set again Created Aug. 17, 2015, 6:17 p.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
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
+

Powered by Google App Engine
This is Rietveld