diff --git a/hg2cvsci.sh b/hg2cvsci.sh new file mode 100755 index 0000000..91e3ab5 --- /dev/null +++ b/hg2cvsci.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# This script does not support automatic "cvs add". +# If new file is added by "hg add", don't forget to "cvs add" in +# CVS working dir. +# +# This script should be called via incomming.hook. + +node=${HG_NODE:-tip} +msg=`hg log -r $node --template '{desc}\n'` +cd `dirname $0` +$HG up -r $node +cvs ci -m "$msg"