Add new hg Repo

From JoBaPedia
Revision as of 12:35, 30 April 2009 by Joachim (talk | contribs)
Jump to navigation Jump to search
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?