Mercurial-server
From Attie's Wiki
(Difference between revisions)
(Created page with "{{note|This procedure was carried out on a Debian server}} ===As root=== <source lang="bash"> apt-get install mercurial-server cp ~${USER}/.ssh/id_rsa.pub /etc/mercurial-serv...") |
m |
||
Line 1: | Line 1: | ||
{{note|This procedure was carried out on a Debian server}} | {{note|This procedure was carried out on a Debian server}} | ||
+ | |||
+ | ===Useful Links=== | ||
+ | https://web.archive.org/web/20131127081747/http://dev.lshift.net/paul/mercurial-server/docbook.html | ||
===As root=== | ===As root=== | ||
Line 20: | Line 23: | ||
# | # | ||
#write repo=therepo user=internal/** | #write repo=therepo user=internal/** | ||
− | #read repo=therepo branch=release | + | #read repo=therepo user=external/** branch=release |
#write repo=therepo user=external/** | #write repo=therepo user=external/** | ||
Revision as of 11:28, 14 February 2014
Note: This procedure was carried out on a Debian server
Useful Links
https://web.archive.org/web/20131127081747/http://dev.lshift.net/paul/mercurial-server/docbook.html
As root
apt-get install mercurial-server cp ~${USER}/.ssh/id_rsa.pub /etc/mercurial-server/root/${USER} sed -re '/^write user=users\/\*\*/d' -i /etc/mercurial-server/access.conf sudo -u hg /usr/share/mercurial-server/refresh-auth
As ${USER}
hg clone ssh://${USER}@localhost/hgadmin cd hgadmin mkdir -p keys/root keys/users cat <<EOF > access.conf # template: # this will prevent external/3rd party developers from merging or writing to the release branch # releases must be made by internal developers # #write repo=therepo user=internal/** #read repo=therepo user=external/** branch=release #write repo=therepo user=external/** # this should be LAST read user=internal/** EOF hg add hg ci -m "initial commit" hg push