yatex

annotate hg2cvsci.sh @ 571:26d14d8bc834

Update copyright line
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 30 Apr 2019 23:45:10 +0900
parents 138703ee0700
children
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@113 11 hg=${HG:-hg}
yuuji@111 12 msg=`hg log -r $node --template '{desc}\n'`
yuuji@111 13 cd `dirname $0`
yuuji@113 14 $hg up -r $node
yuuji@111 15 cvs ci -m "$msg"