yatex

view hg2cvsci.sh @ 112:138703ee0700

Comment more explanatory
author yuuji@gentei.org
date Thu, 15 Oct 2009 23:11:31 +0900
parents 1b1bed72bb3e
children 4f0cb7114235
line source
1 #!/bin/sh
2 # This script does not support automatic "cvs add".
3 # If new file is added by "hg add", don't forget to "cvs add" in
4 # CVS working dir.
5 #
6 # This script should be called via incoming hook in .hg/hgrc as below.
7 # [hooks]
8 # incoming.cvsci = ./hg2cvsci.sh
10 node=${HG_NODE:-tip}
11 msg=`hg log -r $node --template '{desc}\n'`
12 cd `dirname $0`
13 $HG up -r $node
14 cvs ci -m "$msg"