Add new hg Repo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
NEWREPO=my_new_repos_name | |||
REPODESC='my new repos description' | |||
ssh root@job4 | ssh root@job4 | ||
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 '[web] | echo '[web] | ||
contact = Joachim Banzhaf <joachim.banzhaf@googlemail.com> | contact = Joachim Banzhaf <joachim.banzhaf@googlemail.com> | ||
description = | description = $NEWREPO $REPODESC | ||
allowgz = true' >hgrc | allowgz = true' >hgrc | ||
Todo: correct access rights? | Todo: correct access rights? |
Revision as of 12:35, 30 April 2009
NEWREPO=my_new_repos_name REPODESC='my new repos description' ssh root@job4 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?