Mercurial hgwebdir on CentOS 6
Note this setup is unsecured and just for the purpose of having my own lab svn repo.
Install mercurial on your server
yum install mercurial
Setup the mercurial site on apache
mkdir /var/www/cgi-hg
cp /usr/share/doc/mercurial-1.4/hgwebdir.cgi /var/www/cgi-hg/
chmod +x /var/www/cgi-hg/hgwebdir.cgi
Create the hgweb.config
/var/www/cgi-hg/hgweb.config
[paths]
#VIRTUAL_PATH = /REAL/PATH
#myproject = myproject
lab = /srv/hg
Reload apache
service httpd reload
Make sure everything has the right permission on selinux or you can temporarily disable selinux
Your site now is accessible thru http://servername/hg
To test push functionality,you might try to disable ssl and allow push to all
/srv/hg/.hg/hgrc
[web]
allow_push = *
push_ssl = false
Ref:
http://mercurial.selenic.com/wiki/RHEL4HgWebDirSetup
http://mercurial.selenic.com/wiki/PublishingRepositories
Post a Comment