Add new hg Repo

From JoBaPedia
Jump to navigation Jump to search
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?