Add new hg Repo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
ssh root@job4 | |||
NEWREPO=my_new_repos_name | NEWREPO=my_new_repos_name | ||
REPODESC='my new repos description' | REPODESC='my new repos description' | ||
cd /srv/www/htdocs/hg/repos | cd /srv/www/htdocs/hg/repos | ||
mkdir $NEWREPO | mkdir $NEWREPO | ||
Line 10: | Line 10: | ||
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 = $NEWREPO $REPODESC | 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?