2 # Put this script and cvs-modified-files.pl into your PATH (~bin is good) and
4 # export CVSEDITOR=cvsdiffclient
6 # in your .bashrc and you will get a nice bunch of CVS commit reminders:
7 # <merge/land tag information>
11 # Remember to remove the leading "CVS: " part of the comment before saving
12 # your commit comment if you want those entries to be saved.
14 [ -f .mergeinfo ] && . ./.mergeinfo
16 FILES=`cvs-modified-files.pl $1`
17 TMP=`mktemp /tmp/cvslog-XXXXXXXX`
19 if [ -f .mergeinfo ]; then
21 [ "$OPERATION" ] || OPERATION=Update
22 [ "$OPERWHERE" ] || OPERWHERE=from
23 echo "CVS: $OPERATION $child $OPERWHERE $parent ($date)" >> $TMP
24 elif [ -r CVS/Tag ]; then
25 echo "CVS: Branch: `sed 's/^T//' CVS/Tag`" >> $TMP
28 echo "CVS: did you update the ChangeLog for a bug fix?" >> $TMP
29 echo "CVS: did you update the hours spent in Bugzilla?" >> $TMP
30 echo "CVS: b=<bug>" >> $TMP
31 echo "CVS: r=<reviewed_by>" >> $TMP
38 if [ "${FILES:+have_files}"x = have_filesx ]; then
39 echo Diffing $1 : $FILES
40 cvs diff -wbBup $FILES 2>/dev/null | sed "s/^/CVS: /" >>$1
42 #gnuclient $1 || vi $1
43 [ "$EDITOR" ] || EDITOR=vi