Can I set allow_push globally for all Mercurial repos served by a single hgwebdir?

Our company has a large number of projects that have migrated from VSS to Subversion, and now I would like to move them to Mercurial. So far I have worked with hgwebdir.cgi

(Apache on Windows). At this point, I have to add allow_push = *

to .hg / hgrc of each repo in order to make the changes. Is it possible to set this parameter globally on the server so that we don't have to edit every repository if changes are made in the future?

I have tried hgweb.config

and to Mecurial.ini

no avail.

+1


a source to share


1 answer


The global system defaults are stored in c:\Mercurial\Mecurial.ini

This file and directory is not created by the Mercurial installer, so you need to do it manually.

This should also be supported in hgweb.config

come version 1.3.



(Thanks to djc at freenode # mercurial)

+1


a source







All Articles