Add new hg Repo: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
(New page: 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 <joachimbanz...)
 
No edit summary
 
(2 intermediate revisions 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 '[web]
  echo "[web]
  contact = Joachim Banzhaf <joachimbanzhaf@compuserve.de>
  contact = Joachim Banzhaf <joachim.banzhaf@googlemail.com>
  description = NEW REPO DESCRIPTION
  description = $NEWREPO - $REPODESC
  allowgz = true' >hgrc
  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?