Mercurial н
ページを編集するにはログインが必要です。
Mercurial を home にインストールする
-bash-3.2$ wget http://www.selenic.com/mercurial/release/mercurial-1.2.1.tar.gz : -bash-3.2$ tar zxvf mercurial-1.2.1.tar.gz : -bash-3.2$ cd mercurial-1.2.1 -bash-3.2$ make install-home : -bash-3.2$ cd .. -bash-3.2$ vi .bashrc export PYTHONPATH=${HOME}/lib/python export PATH=${HOME}/bin:$PATH -bash-3.2$ source .bashrc -bash-3.2$ hg --version Mercurial - 分散構成管理ツール(バージョン 1.2.1) Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -bash-3.2$ hg init -bash-3.2$ vi .hgignore hiki/data/session/* log/* -bash-3.2$ hg add : -bash-3.2$ hg commit -m "initial" : -bash-3.2$ vi bin/hg.sh #!/bin/sh export PYTHONPATH=/home/xxxxx/lib/python export PATH=/home/xxxxx/bin:$PATH echo ===== hg addremove hg addremove echo ===== hg stat hg stat echo ===== hg commit hg commit -m "Cron commit" -bash-3.2$ chmod u+x bin/hg.sh -bash-3.2$ crontab -e MAIL=nitobe@saigyo.net 0 0 * * * /home/xxxxx/bin/hg.sh -bash-3.2$
こんな感じかな?
毎晩0時にリポジトリに対して、本日のファイルの増減を add,remove して、変更点をcommitする。
Keyword(s):
References: