yatex

annotate hg2cvsci.sh @ 111:1b1bed72bb3e

add hg2cvsci.sh
author yuuji@gentei.org
date Thu, 15 Oct 2009 23:05:57 +0900
parents
children 138703ee0700
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@111 6 # This script should be called via incomming.hook.
yuuji@111 7
yuuji@111 8 node=${HG_NODE:-tip}
yuuji@111 9 msg=`hg log -r $node --template '{desc}\n'`
yuuji@111 10 cd `dirname $0`
yuuji@111 11 $HG up -r $node
yuuji@111 12 cvs ci -m "$msg"