Add new hg Repo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
ssh root@job4 | ssh root@job4 | ||
NEWREPO=my_new_repos_name | |||
REPODESC='my new repos description' | |||
cd /srv/www/htdocs/hg/repos | cd /srv/www/htdocs/hg/repos | ||
mkdir NEWREPO | mkdir $NEWREPO | ||
chown joachim:www NEWREPO | chown joachim:www $NEWREPO | ||
chmod ug+rw NEWREPO | chmod ug+rw $NEWREPO | ||
cd NEWREPO | cd $NEWREPO | ||
hg init | hg init | ||
cd .hg | cd .hg | ||
echo | echo "[web] | ||
contact = Joachim Banzhaf <joachim.banzhaf@googlemail.com> | contact = Joachim Banzhaf <joachim.banzhaf@googlemail.com> | ||
description = | description = $NEWREPO - $REPODESC | ||
allowgz = true | allowgz = true" >hgrc | ||
Todo: correct access rights? | Todo: correct access rights? |
Latest revision as of 09:56, 21 June 2009
ssh root@job4 NEWREPO=my_new_repos_name REPODESC='my new repos description' cd /srv/www/htdocs/hg/repos mkdir $NEWREPO chown joachim:www $NEWREPO chmod ug+rw $NEWREPO cd $NEWREPO hg init cd .hg echo "[web] contact = Joachim Banzhaf <joachim.banzhaf@googlemail.com> description = $NEWREPO - $REPODESC allowgz = true" >hgrc
Todo: correct access rights?