On Wed, Feb 16, 2011 at 4:31 PM, Marco Peereboom <sl...@peereboom.us> wrote: > On Feb 16, 2011, at 13:32, "Nicolas P. M. Legrand" <nlegr...@ethelred.fr> > wrote: >> On Wed, Feb 16, 2011 at 11:16:01AM -0800, patrick keshishian wrote: >>> On Wed, Feb 16, 2011 at 10:29 AM, Nicolas P. M. Legrand >>> <nlegr...@ethelred.fr> wrote: >>>> On Wed, Feb 16, 2011 at 12:01:22PM -0500, Luis Useche wrote: >>>>> One thing I would really like to see is the diffs of every commit. This > is >>>>> available for DragonflyBSD for instance. Is there a way to find this on >>>>> OBSD? >>>> >>>> CVS and git are very different I don't think you can easily have this >>>> feature with CVS (if it exists I'd be glad to know it :)). Personally >>> >>> Sure it can. see CVSROOT/loginfo. You define a filter and need a >>> filter-script that will take files with changed revisions, do the 'cvs >>> diff' and mail out the outputs. >> >> ha thanks! I'll have a look. > > Man I'd love an example for this.
loginfo would work comfortably only if the commits are in one directory, since it runs once per dir: ######################################################################## andres@pote:~/tmp $ awk 'length && !/^#/' CVSROOT/loginfo ALL ~/tmp/loginfo.sh %{sVv} ######################################################################## andres@pote:~/tmp $ cat loginfo.sh #!/bin/sh echo -- LOGINFO ARGC: "$#" echo -- LOGINFO ARGV: "$@" echo -- LOGINFO STDIN: cat echo -- LOGINFO EOF ######################################################################## andres@pote:~/tmp $ cvs ci -m'test' b CVSROOT /home/andres/tmp/cvstmp/b,v <-- b new revision: 1.5; previous revision: 1.4 -- LOGINFO ARGC: 1 -- LOGINFO ARGV: -- LOGINFO STDIN: Update of /home/andres/tmp/cvstmp In directory pote.domain.local:/home/andres/tmp Modified Files: b Log Message: test -- LOGINFO EOF /home/andres/tmp/cvstmp/CVSROOT/loginfo,v <-- CVSROOT/loginfo new revision: 1.8; previous revision: 1.7 cvs commit: Rebuilding administrative file database -- LOGINFO ARGC: 3 -- LOGINFO ARGV: loginfo 1.7 1.8 -- LOGINFO STDIN: Update of /home/andres/tmp/cvstmp/CVSROOT In directory pote.domain.local:/home/andres/tmp/CVSROOT Modified Files: loginfo Log Message: test -- LOGINFO EOF