yatex

annotate hg2cvsci.sh @ 112:138703ee0700

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