From raphink at gmail.com Fri Aug 21 15:45:35 2009 From: raphink at gmail.com (=?ISO-8859-1?Q?Rapha=EBl_Pinson?=) Date: Fri, 21 Aug 2009 16:45:35 +0200 Subject: [cvsspam-devel] Patches for Gforge Message-ID: <8ce271500908210745m7fab579eve5843befd095f416@mail.gmail.com> Hello, We have just set up CVSSpam for a Gforge platform, and I'm attaching two patches and one file to this email. * collect_diffs_fix_root_commits.diff is a small fix. I happen to have some files that are not in modules but directly in the root of the CVS module. This patch allows to send diffs for modifications of such files ; * gforge_scm.diff adds support for the SCM plugin for Gforge for cvsspam.rb. In order to use it, you need to add the following two parameters to your cvsspam.conf : $gforgescmURL = "http://gforge.example.org/scm" $repository_name = GUESS * cvsspam-wrapper.sh is a little script which makes it easier to call cvsspam on Gforge. It wraps the call to collect_diffs.rb by using the noreply@ account as from address by default and ${repository}-commits at lists as to address by default. I've added Roland to the recipients of this mail in case he is interested by this. Regards, Rapha?l Pinson -------------- next part -------------- A non-text attachment was scrubbed... Name: collect_diffs_fix_root_commits.diff Type: text/x-diff Size: 333 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gforge_scm.diff Type: text/x-diff Size: 1616 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cvsspam-wrapper.sh Type: application/x-sh Size: 645 bytes Desc: not available URL: From raphink at gmail.com Fri Aug 21 16:59:08 2009 From: raphink at gmail.com (=?ISO-8859-1?Q?Rapha=EBl_Pinson?=) Date: Fri, 21 Aug 2009 17:59:08 +0200 Subject: [cvsspam-devel] Patches for Gforge In-Reply-To: <8ce271500908210745m7fab579eve5843befd095f416@mail.gmail.com> References: <8ce271500908210745m7fab579eve5843befd095f416@mail.gmail.com> Message-ID: <8ce271500908210859y6fbcce8embeab531bab4c7e02@mail.gmail.com> 2009/8/21 Rapha?l Pinson : > Hello, > > We have just set up CVSSpam for a Gforge platform, and I'm attaching > two patches and one file to this email. > > * collect_diffs_fix_root_commits.diff is a small fix. I happen to have > some files that are not in modules but directly in the root of the CVS > module. This patch allows to send diffs for modifications of such > files ; > * gforge_scm.diff adds support for the SCM plugin for Gforge for > cvsspam.rb. In order to use it, you need to add the following two > parameters to your cvsspam.conf : > ? ?$gforgescmURL = "http://gforge.example.org/scm" > ? ?$repository_name = GUESS > * cvsspam-wrapper.sh is a little script which makes it easier to call > cvsspam on Gforge. It wraps the call to collect_diffs.rb by using the > noreply@ account as from address by default and > ${repository}-commits at lists as to address by default. I've added > Roland to the recipients of this mail in case he is interested by > this. > I'm sorry to say there were two bugs in one of my patches and I only found it now (my ruby skills are very bad). So here is the fixed version of gforge_scm.diff which fixes : * unnecessary use of initalize provoked warning ; * not using a tag in a commit crashed cvsspam, so now I check for tag==nil. Regards, Rapha?l Pinson -------------- next part -------------- A non-text attachment was scrubbed... Name: gforge_scm.diff Type: text/x-diff Size: 1629 bytes Desc: not available URL: