From dave at badgers-in-foil.co.uk Sat May 1 11:48:17 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat, 1 May 2004 11:48:17 +0000 Subject: [cvsspam-devel] Re: Showing who edited a file in CVSspam? In-Reply-To: <200404281839.i3SIdUF28218@mail.middleware-company.com> References: <200404281839.i3SIdUF28218@mail.middleware-company.com> Message-ID: <20040501114817.GA6602@vhost.badgers-in-foil.co.uk> On Wed, Apr 28, 2004 at 02:45:23PM -0400, Dion Almaer wrote: > Firstly, thanks for building a great tool in CVSspam. We love it :) Thanks! > I am sorry to bug you, but I was wondering if there is a way to display WHO > checked in the given file in the email that gets sent out? In the normal mode of operation, CVSspam emails should appear to originate from the person who made the commit. If your CVS server setup is such that this doesn't 'just happen', try using the --from commandline option in the CVS loginfo file, as described here, http://www.badgers-in-foil.co.uk/projects/cvsspam/cvsspam-doc.html#AEN98 Does that help? dave From dion at theserverside.com Sat May 1 14:47:59 2004 From: dion at theserverside.com (Dion Almaer) Date: Sat, 1 May 2004 10:47:59 -0400 Subject: [cvsspam-devel] RE: Showing who edited a file in CVSspam? Message-ID: <680F503D41F9B445B51BE1E49A6E35EF3D3468@utopiasystems.net> Thanks very much for getting back to us. I tweaked loginfo to add --from $USER@... And it worked like a charm. I apologise for not finding this myself! Cheers, Dion=20 > -----Original Message----- > From: David Holroyd=20 > Sent: Saturday, May 01, 2004 7:48 AM > To: Dion Almaer > Cc: Lloyd Benson; CVSspam Devel List > Subject: Re: Showing who edited a file in CVSspam? >=20 > On Wed, Apr 28, 2004 at 02:45:23PM -0400, Dion Almaer wrote: > > Firstly, thanks for building a great tool in CVSspam. We love it :) >=20 > Thanks! >=20 >=20 > > I am sorry to bug you, but I was wondering if there is a way to=20 > > display WHO checked in the given file in the email that=20 > gets sent out? >=20 > In the normal mode of operation, CVSspam emails should appear=20 > to originate from the person who made the commit. If your=20 > CVS server setup is such that this doesn't 'just happen', try=20 > using the --from commandline option in the CVS loginfo file,=20 > as described here, >=20 > =20 > http://www.badgers-in-foil.co.uk/projects/cvsspam/cvsspam-doc. > html#AEN98 >=20 > Does that help? >=20 >=20 > dave >=20 >=20 From dave at badgers-in-foil.co.uk Fri May 7 08:42:26 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri, 7 May 2004 08:42:26 +0000 Subject: [cvsspam-devel] [ian at srand.com: [SVNspam-dev] working post-commit script] Message-ID: <20040507084226.GA22900@vhost.badgers-in-foil.co.uk> See http://lists.badgers-in-foil.co.uk/pipermail/svnspam-dev/2004-May/000002.html If you're interested in Subversion... ----- Forwarded message from "Ian P. Cardenas" ----- To: svnspam-dev#lists.badgers-in-foil.co.uk From: "Ian P. Cardenas" Subject: [SVNspam-dev] working post-commit script These scripts are working for me in my environment with the attached patch to cvsspam.rb. communication is done using a pipe rather than a temp file. You can take these and run with 'em. I'm happy with the way it's working now :) -- Ian P. Cardenas Synthoria Research And Development, LLC ----- End forwarded message ----- From =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= Sun May 9 11:37:35 2004 From: =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= (=?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?=) Date: Sun, 9 May 2004 13:37:35 +0200 Subject: [cvsspam-devel] Re: Showing who edited a file in CVSspam? Message-ID: <18813040921.20040509133735@nd-campus.com> Hi, Browsing your online database of previous mails, I get this one who is close to my problem I use the excellent CVSSpam tool since I switch my CVS from Windos to Debian Let's quote: > > I am sorry to bug you, but I was wondering if there is a way to > > display WHO checked in the given file in the email that > gets sent out? I know and use the --from option that is working quite well, but I'd like to use the infos from the users file that is in CVSROOT directory The default comportment in CVSSpam is to add the hostname after the $USER variable but most of my CVS users don't have a mail account on my machine Previously with CVSMailer on windows I had the possibility to get the mail of the user in a users file in the CVSROOT directory, so is it possible to change a bit the cvsspam.rb to get the mail from this file. cvsspam.rb: (where it has to be change, I guess ;) def send(from, recipients) if from == nil from = ENV['USER'] || ENV['USERNAME'] || 'cvsspam' end unless from =~ /@/ from = "#{from}@#{ENV['HOSTNAME']||'localhost'}" end smtp = Net::SMTP.new(@smtp_host) blah("connecting to '#{@smtp_host}'") smtp.start() smtp.ready(from, recipients) do |mail| Example of what is in my users file: # The "users" file contains a mapping of CVS usernames against their email # addresses so that CVS can resolve the usernamse to valid email for notifications # Format for each line (one line per user): # # : mycvsuser:"It's me" But when I commit with my config an mycvsuser I'll receive a mail from mycvsuser@debian.domain (according that my machine is debian.domain) My loginfo file is: DEFAULT $CVSROOT/CVSROOT/collect_diffs.rb --from $USER %{sVv} And the the recipients are listed in the cvsspam.conf file THank you so much for this great tool -- Cordialement, Sébastien mailto:sebastien.claude nd-campus.com From dave at badgers-in-foil.co.uk Mon May 10 13:26:24 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon, 10 May 2004 13:26:24 +0000 Subject: [cvsspam-devel] Re: Showing who edited a file in CVSspam? In-Reply-To: <18813040921.20040509133735@nd-campus.com> References: <18813040921.20040509133735@nd-campus.com> Message-ID: <20040510132624.GA20125@vhost.badgers-in-foil.co.uk> On Sun, May 09, 2004 at 01:37:35PM +0200, S?bastien CLAUDE wrote: > Previously with CVSMailer on windows I had the possibility to get the > mail of the user in a users file in the CVSROOT directory, so is it > possible to change a bit the cvsspam.rb to get the mail from this > file. This feature will be in the next release -- sometime soon. dave From =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= Mon May 10 13:32:44 2004 From: =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= (=?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?=) Date: Mon, 10 May 2004 15:32:44 +0200 Subject: Re[2]: [cvsspam-devel] Re: Showing who edited a file in CVSspam? In-Reply-To: <20040510132624.GA20125@vhost.badgers-in-foil.co.uk> References: <18813040921.20040509133735@nd-campus.com> <20040510132624.GA20125@vhost.badgers-in-foil.co.uk> Message-ID: <166106350156.20040510153244@nd-campus.com> Bonjour David, Nice... Hope the release will be out soon Keep up the good work I'll be glad if I can be of some help in your project, frenc is my mother language, so if you plan to translate some things, let me know ;) Seb Le lundi 10 mai 2004 à 15:26:24, vous écriviez : DH> On Sun, May 09, 2004 at 01:37:35PM +0200, S?bastien CLAUDE wrote: >> Previously with CVSMailer on windows I had the possibility to get the >> mail of the user in a users file in the CVSROOT directory, so is it >> possible to change a bit the cvsspam.rb to get the mail from this >> file. DH> This feature will be in the next release -- sometime soon. DH> dave DH> _______________________________________________ DH> cvsspam-devel mailing list DH> cvsspam-devel@lists.badgers-in-foil.co.uk DH> http://lists.badgers-in-foil.co.uk/mailman/listinfo/cvsspam-devel -- Cordialement, Sébastien mailto:sebastien.claude nd-campus.com From dave at badgers-in-foil.co.uk Mon May 10 14:03:31 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon, 10 May 2004 14:03:31 +0000 Subject: [cvsspam-devel] [ANN] CVSspam 0.2.9 released Message-ID: <20040510140331.GA21324@vhost.badgers-in-foil.co.uk> The latest version is now available at, http://www.badgers-in-foil.co.uk/projects/cvsspam/ This release will take sender email addresses from the CVSROOT/users file, if this exists in the repository. The 'users' file is normally used to configure CVS's 'watchers' feature. Format is described here, http://cvsbook.red-bean.com/cvsbook.html#users I've implemented a little hack in the diff-formatting code that truncates lines longer that 1000 characters. Truncated lines are marked by appending '[...]' on the end, and a note about this having happened is also appended to the end of the diff. See the example here, http://www.badgers-in-foil.co.uk/projects/cvsspam/example.html#file21 This version also contains the files-in-subject fix mentioned here, http://lists.badgers-in-foil.co.uk/pipermail/cvsspam-devel/2003-November/000060.html dave From =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= Mon May 10 14:54:59 2004 From: =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= (=?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?=) Date: Mon, 10 May 2004 16:54:59 +0200 Subject: [cvsspam-devel] [ANN] CVSspam 0.2.9 released In-Reply-To: <20040510140331.GA21324@vhost.badgers-in-foil.co.uk> References: <20040510140331.GA21324@vhost.badgers-in-foil.co.uk> Message-ID: <55111285265.20040510165459@nd-campus.com> Bonjour David, Whaoh ! Didn't think it will be so soon ;) I just test the sender adressess from CVSROOT/users file and it doesn't work with spaces in user description My users file is as follow: username:"user description" Then I get this kind of sender adress in the commit mail: From: "user"@hostname or user@hostname SO it's not the username@hostname but first part of user description WIth: username: in the users file it's working lile a charm Then with: username:"user_descrpition" it's working also I'm pretty sure the space is misinterpreted in the users file (Maybe you can put this on your TODO list) Thanks again for this new feature because it's really nice to know exactly who has made a commit and be able to reply directly to this person Seb Le lundi 10 mai 2004 à 16:03:31, vous écriviez : DH> The latest version is now available at, DH> http://www.badgers-in-foil.co.uk/projects/cvsspam/ DH> This release will take sender email addresses from the CVSROOT/users DH> file, if this exists in the repository. The 'users' file is normally DH> used to configure CVS's 'watchers' feature. Format is described here, DH> http://cvsbook.red-bean.com/cvsbook.html#users DH> I've implemented a little hack in the diff-formatting code that DH> truncates lines longer that 1000 characters. Truncated lines are DH> marked by appending '[...]' on the end, and a note about this having DH> happened is also appended to the end of the diff. See the example here, DH> DH> http://www.badgers-in-foil.co.uk/projects/cvsspam/example.html#file21 DH> This version also contains the files-in-subject fix mentioned here, DH> DH> http://lists.badgers-in-foil.co.uk/pipermail/cvsspam-devel/2003-November/000060.html DH> dave DH> _______________________________________________ DH> cvsspam-devel mailing list DH> cvsspam-devel@lists.badgers-in-foil.co.uk DH> http://lists.badgers-in-foil.co.uk/mailman/listinfo/cvsspam-devel -- Cordialement, Sébastien mailto:sebastien.claude nd-campus.com From dave at badgers-in-foil.co.uk Mon May 10 15:24:03 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon, 10 May 2004 15:24:03 +0000 Subject: [cvsspam-devel] [ANN] CVSspam 0.2.9 released In-Reply-To: <55111285265.20040510165459@nd-campus.com> References: <20040510140331.GA21324@vhost.badgers-in-foil.co.uk> <55111285265.20040510165459@nd-campus.com> Message-ID: <20040510152402.GB21324@vhost.badgers-in-foil.co.uk> On Mon, May 10, 2004 at 04:54:59PM +0200, S?bastien CLAUDE wrote: > My users file is as follow: > username:"user description" > > Then I get this kind of sender adress in the commit mail: > From: "user"@hostname or user@hostname Oops. Please try making the following change, diff -u -r1.45 cvsspam.rb --- cvsspam.rb 17 Mar 2004 23:04:58 -0000 1.45 +++ cvsspam.rb 10 May 2004 15:17:08 -0000 @@ -1308,7 +1308,7 @@ if File.exists?($users_file) File.open($users_file) do |io| io.each_line do |line| - if line =~ /^([^:]+)\s*:\s*([^\s]+)/ + if line =~ /^([^:]+)\s*:\s*([^\n\r]+)/ if address == $1 return $2 end I'd wanted to avoid capturing the trailing end-of-line charcters, but I was excluding any whitespace at all from appearing in the expansion of the username :( dave From =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= Mon May 10 15:47:52 2004 From: =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= (=?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?=) Date: Mon, 10 May 2004 17:47:52 +0200 Subject: Re[2]: [cvsspam-devel] [ANN] CVSspam 0.2.9 released In-Reply-To: <20040510152402.GB21324@vhost.badgers-in-foil.co.uk> References: <20040510140331.GA21324@vhost.badgers-in-foil.co.uk> <55111285265.20040510165459@nd-campus.com> <20040510152402.GB21324@vhost.badgers-in-foil.co.uk> Message-ID: <46114458265.20040510174752@nd-campus.com> Bonjour David, It now works perfectly ! Thanks again Seb Le lundi 10 mai 2004 à 17:24:03, vous écriviez : DH> On Mon, May 10, 2004 at 04:54:59PM +0200, S?bastien CLAUDE wrote: >> My users file is as follow: >> username:"user description" >> >> Then I get this kind of sender adress in the commit mail: >> From: "user"@hostname or user@hostname DH> Oops. Please try making the following change, DH> diff -u -r1.45 cvsspam.rb DH> --- cvsspam.rb 17 Mar 2004 23:04:58 -0000 1.45 DH> +++ cvsspam.rb 10 May 2004 15:17:08 -0000 DH> @@ -1308,7 +1308,7 @@ DH> if File.exists?($users_file) DH> File.open($users_file) do |io| DH> io.each_line do |line| DH> - if line =~ /^([^:]+)\s*:\s*([^\s]+)/ DH> + if line =~ /^([^:]+)\s*:\s*([^\n\r]+)/ DH> if address == $1 DH> return $2 DH> end DH> I'd wanted to avoid capturing the trailing end-of-line charcters, but I DH> was excluding any whitespace at all from appearing in the expansion of DH> the username :( DH> dave DH> _______________________________________________ DH> cvsspam-devel mailing list DH> cvsspam-devel@lists.badgers-in-foil.co.uk DH> http://lists.badgers-in-foil.co.uk/mailman/listinfo/cvsspam-devel -- Cordialement, Sébastien mailto:sebastien.claude nd-campus.com From btafoya at briantafoya.com Tue May 11 06:13:07 2004 From: btafoya at briantafoya.com (Brian Tafoya) Date: Mon, 10 May 2004 23:13:07 -0700 Subject: [cvsspam-devel] Error in cvsspam... Message-ID: <40A06EF3.6070700@briantafoya.com> This is a multi-part message in MIME format. --------------090703000805050201060804 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I am receiveing this error message, and I am not a Ruby programmer (soon enought though!) so have no clue where to start looking... cvsspam.rb:546: warning: instance variable @repository_name not initialized I am running the latest tarbal version from the web site under Redhat 9. Thanks! -- *Brian Tafoya* briantafoya.com /"Taking over the planet one open source script at a time!"/ --------------090703000805050201060804 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I am receiveing this error message, and I am not a Ruby programmer (soon enought though!) so have no clue where to start looking...

cvsspam.rb:546: warning: instance variable @repository_name not initialized

I am running the latest tarbal version from the web site under Redhat 9. Thanks!
--


Brian Tafoya
briantafoya.com
"Taking over the planet one open source script at a time!"

--------------090703000805050201060804-- From dave at badgers-in-foil.co.uk Tue May 11 10:28:25 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue, 11 May 2004 10:28:25 +0000 Subject: [cvsspam-devel] Error in cvsspam... In-Reply-To: <40A06EF3.6070700@briantafoya.com> References: <40A06EF3.6070700@briantafoya.com> Message-ID: <20040511102825.GA5709@vhost.badgers-in-foil.co.uk> --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 10, 2004 at 11:13:07PM -0700, Brian Tafoya wrote: > I am receiveing this error message, and I am not a Ruby programmer (soon > enought though!) so have no clue where to start looking... > > cvsspam.rb:546: warning: instance variable @repository_name not initialized Does the script continue after this warning, or does it stop dead? I think the attached patch should fix my mistake. It would be great if you could give it a try and let me know if it helps. dave --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="initialize_repository_name-patch.diff" diff -u -r1.47 cvsspam.rb --- cvsspam.rb 11 May 2004 10:15:17 -0000 1.47 +++ cvsspam.rb 11 May 2004 10:23:21 -0000 @@ -515,8 +515,11 @@ # Superclass for objects that can link to CVS frontends on the web (ViewCVS, # Chora, etc.). class WebFrontend < NoFrontend + attr_accessor :repository_name + def initialize(base_url) @base_url = base_url + @repository_name = nil end def path(path, tag) @@ -557,12 +560,8 @@ # Link to ViewCVS class ViewCVSFrontend < WebFrontend - - attr_accessor :repository_name - def initialize(base_url) super(base_url) - @repository_name = nil end def path_url(path, tag) --X1bOJ3K7DJ5YkBrT-- From bart.selders at ibanx.nl Fri May 14 21:12:47 2004 From: bart.selders at ibanx.nl (Bart Selders) Date: Fri, 14 May 2004 23:12:47 +0200 Subject: [cvsspam-devel] Email generated by CVSSpam has no date header Message-ID: <40A5364F.1090107@ibanx.nl> Hi, I just have setup CVS & CVSspam 0.2.9 on a standard linux redhat 9 box. Email generated from CVSspam arrives with no date header. As consequence Mozilla email will show the date as 1/1/1970 and put it down below in your inbox, so there is less chance that these are noticed. It would be nice if cvsspam could generate a date header on each sent email, like other cvslog scripts do. I tried to find a way, but i am rather new to ruby. It must be easy by just adding one line. Bart ************************************************************************* The information contained in this communication is confidential and is intended solely for the use of the individual or entity to whom it is addressed.You should not copy, disclose or distribute this communication without the authority of iBanx bv. iBanx bv is neither liable for the proper and complete transmission of the information has been maintained nor that the communication is free of viruses, interceptions or interference. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. From bart.selders at ibanx.nl Fri May 14 21:32:31 2004 From: bart.selders at ibanx.nl (Bart Selders) Date: Fri, 14 May 2004 23:32:31 +0200 Subject: [cvsspam-devel] [Fwd: Email generated by CVSSpam has no date header] Message-ID: <40A53AEF.1030609@ibanx.nl> OK, an update. When I use the local MTA rather then our central Exchange mailserver (by disabling the MTA from the cvsspam.conf file) it works fine. Sendmail is adding the date header. Bart -------- Original Message -------- Subject: Email generated by CVSSpam has no date header Date: Fri, 14 May 2004 23:12:47 +0200 From: Bart Selders Organization: iBanx To: cvsspam-devel@lists.badgers-in-foil.co.uk Hi, I just have setup CVS & CVSspam 0.2.9 on a standard linux redhat 9 box. Email generated from CVSspam arrives with no date header. As consequence Mozilla email will show the date as 1/1/1970 and put it down below in your inbox, so there is less chance that these are noticed. It would be nice if cvsspam could generate a date header on each sent email, like other cvslog scripts do. I tried to find a way, but i am rather new to ruby. It must be easy by just adding one line. Bart ************************************************************************* The information contained in this communication is confidential and is intended solely for the use of the individual or entity to whom it is addressed.You should not copy, disclose or distribute this communication without the authority of iBanx bv. iBanx bv is neither liable for the proper and complete transmission of the information has been maintained nor that the communication is free of viruses, interceptions or interference. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. From dave at badgers-in-foil.co.uk Mon May 17 10:07:14 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon, 17 May 2004 10:07:14 +0000 Subject: [cvsspam-devel] [Fwd: Email generated by CVSSpam has no date header] In-Reply-To: <40A53AEF.1030609@ibanx.nl> References: <40A53AEF.1030609@ibanx.nl> Message-ID: <20040517100714.GA24256@vhost.badgers-in-foil.co.uk> On Fri, May 14, 2004 at 11:32:31PM +0200, Bart Selders wrote: > I just have setup CVS & CVSspam 0.2.9 on a standard linux redhat 9 box. > Email generated from CVSspam arrives with no date header. The Net::SMTP support was added as an afterthought when I was trying to get CVSspam to work under windows too. Under normal circumstances, I'd always expect the local MTA to be used. That said, I'll try to correct this oversight for the next release. Thanks for taking the time to report the bug! :) dave From =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= Wed May 26 09:41:07 2004 From: =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= (=?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?=) Date: Wed, 26 May 2004 11:41:07 +0200 Subject: [cvsspam-devel] cvs TAG supported by CVSSPAM ? In-Reply-To: <20040517100714.GA24256@vhost.badgers-in-foil.co.uk> References: <40A53AEF.1030609@ibanx.nl> <20040517100714.GA24256@vhost.badgers-in-foil.co.uk> Message-ID: <37221304843.20040526114107@nd-campus.com> Bonjour , I can't find in the documentation if CVSSPAM support the cvs tag command I mean when i tag something in my cvs repository I'd like to receive an email with the tag I've just set. Is it possible with CVSSPAM and how to do it ? Thanks a lot -- Cordialement, Sébastien mailto:sebastien.claude@nd-campus.com From dave at badgers-in-foil.co.uk Wed May 26 10:54:41 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed, 26 May 2004 10:54:41 +0000 Subject: [cvsspam-devel] cvs TAG supported by CVSSPAM ? In-Reply-To: <37221304843.20040526114107@nd-campus.com> References: <37221304843.20040526114107@nd-campus.com> Message-ID: <20040526105441.GA3793@vhost.badgers-in-foil.co.uk> Hello, On Wed, May 26, 2004 at 11:41:07AM +0200, S?bastien CLAUDE wrote: > Bonjour , > > I can't find in the documentation if CVSSPAM support the cvs tag > command > I mean when i tag something in my cvs repository I'd like to receive > an email with the tag I've just set. > > Is it possible with CVSSPAM and how to do it ? This is not possible with CVSspam, though it would be nice to have. Here's why I've not implemented it... If we create a test script like this, #!/usr/bin/ruby -w puts ARGV.join(";") and point to this in CVSROOT/taginfo, we'll see something like the following when we run a 'cvs tag FOO_TAG' in a checkout of 'testproject', FOO_TAG;add;/testproject;delete_then_add;1.3;tasktest;1.2 FOO_TAG;add;/testproject/binaryfiles;add.png;1.1;modify.png;1.2 FOO_TAG;add;/testproject/branchedfiles;added;1.1.2.1;modified;1.1.2.1;modified2;1.1.2.1.2.1 FOO_TAG;add;/testproject/emptyfiles;add;1.1;modify;1.2 FOO_TAG;add;/testproject/funnynames;entity&file;1.1;htmlfile;1.1 FOO_TAG;add;/testproject/funnynames/comma,dir;test;1.1 FOO_TAG;add;/testproject/funnynames/space dir;test;1.1 FOO_TAG;add;/testproject/simplefiles;add;1.1;addeol;1.2;deleteall;1.2;fiddlyedits;1.2;longlines;1.2;modify;1.2;removeeol;1.2 ( being the path to the repository). There are multiple lines of output because our test script gets invoked by CVS multiple times (once per directory). However, CVS gives us no indication when the tagging operation is complete. This makes it tricky to batch all the info from a single 'cvs tag/rtag' into a single email. I've thought of implementing schemes along the lines of, "if we hear of no new taged dir for 5 minutes, assume the operation has completed and send the email," but I can see even that assumption breaking when tagging a really big project on a heavily loaded server. It all seemes like too much effort, especially as I don't care that much about tags. If anyone can suggest a nicer way of doing this, or is motivated enough to implementing something, I'll provide whatever help I can, though. dave From =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= Wed May 26 12:00:54 2004 From: =?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?= (=?ISO-8859-15?B?U+liYXN0aWVuIENMQVVERQ==?=) Date: Wed, 26 May 2004 14:00:54 +0200 Subject: Re[2]: [cvsspam-devel] cvs TAG supported by CVSSPAM ? In-Reply-To: <20040526105441.GA3793@vhost.badgers-in-foil.co.uk> References: <37221304843.20040526114107@nd-campus.com> <20040526105441.GA3793@vhost.badgers-in-foil.co.uk> Message-ID: <73229692203.20040526140054@nd-campus.com> Bonjour David, Do you think there is a way to send a simple email to 2 diffrent email adresses on a tag With a simple line calling sendmail and some cvs options/args in the taginfo file Curious that there are non start or end indications when we're doing a tag, anyway... I'll previously use CVSMailer on CVSNT (windows) and there was this functionnality But after some research I'm not sure the Unix CVS is working the same way because this tool support taginfo for windows but not Unix http://www.devguy.com/moin.cgi/CvsNotify Did you knew it ? They reference CVSSPam, nice isn't it ;) Le mercredi 26 mai 2004 à 12:54:41, vous écriviez : DH> Hello, DH> On Wed, May 26, 2004 at 11:41:07AM +0200, S?bastien CLAUDE wrote: >> Bonjour , >> >> I can't find in the documentation if CVSSPAM support the cvs tag >> command >> I mean when i tag something in my cvs repository I'd like to receive >> an email with the tag I've just set. >> >> Is it possible with CVSSPAM and how to do it ? DH> This is not possible with CVSspam, though it would be nice to have. DH> Here's why I've not implemented it... DH> If we create a test script like this, DH> #!/usr/bin/ruby -w DH> puts ARGV.join(";") DH> and point to this in CVSROOT/taginfo, we'll see something like the DH> following when we run a 'cvs tag FOO_TAG' in a checkout of 'testproject', DH> FOO_TAG;add;/testproject;delete_then_add;1.3;tasktest;1.2 DH> DH> FOO_TAG;add;/testproject/binaryfiles;add.png;1.1;modify.png;1.2 DH> DH> FOO_TAG;add;/testproject/branchedfiles;added;1.1.2.1;modified;1.1.2.1;modified2;1.1.2.1.2.1 DH> FOO_TAG;add;/testproject/emptyfiles;add;1.1;modify;1.2 DH> DH> FOO_TAG;add;/testproject/funnynames;entity&file;1.1;htmlfile;1.1 DH> FOO_TAG;add;/testproject/funnynames/comma,dir;test;1.1 DH> FOO_TAG;add;/testproject/funnynames/space dir;test;1.1 DH> DH> FOO_TAG;add;/testproject/simplefiles;add;1.1;addeol;1.2;deleteall;1.2;fiddlyedits;1.2;longlines;1.2;modify;1.2;removeeol;1.2 DH> ( being the path to the repository). DH> There are multiple lines of output because our test script gets invoked DH> by CVS multiple times (once per directory). However, CVS gives us no DH> indication when the tagging operation is complete. DH> This makes it tricky to batch all the info from a single 'cvs tag/rtag' DH> into a single email. I've thought of implementing schemes along the DH> lines of, "if we hear of no new taged dir for 5 minutes, assume the DH> operation has completed and send the email," but I can see even that DH> assumption breaking when tagging a really big project on a heavily DH> loaded server. DH> It all seemes like too much effort, especially as I don't care that much DH> about tags. If anyone can suggest a nicer way of doing this, or is DH> motivated enough to implementing something, I'll provide whatever help I DH> can, though. DH> dave DH> _______________________________________________ DH> cvsspam-devel mailing list DH> cvsspam-devel@lists.badgers-in-foil.co.uk DH> http://lists.badgers-in-foil.co.uk/mailman/listinfo/cvsspam-devel -- Cordialement, Sébastien mailto:sebastien.claude@nd-campus.com From dave at badgers-in-foil.co.uk Wed May 26 13:18:51 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed, 26 May 2004 13:18:51 +0000 Subject: [cvsspam-devel] cvs TAG supported by CVSSPAM ? In-Reply-To: <73229692203.20040526140054@nd-campus.com> References: <37221304843.20040526114107@nd-campus.com> <20040526105441.GA3793@vhost.badgers-in-foil.co.uk> <73229692203.20040526140054@nd-campus.com> Message-ID: <20040526131851.GA6964@vhost.badgers-in-foil.co.uk> On Wed, May 26, 2004 at 02:00:54PM +0200, S?bastien CLAUDE wrote: > Bonjour David, > > Do you think there is a way to send a simple email to 2 diffrent email > adresses on a tag > With a simple line calling sendmail and some cvs options/args in the > taginfo file Off the top of my head, something like this should generate basic emails, #!/bin/sh echo $* | /usr/sbin/sendmail -s 'A tag!' mail1@domain mail2@domain Put that in a file, and specify the filename in taginfo. Shouldn't take too much work to make the messages more pretty. You will, however, get multiple emails when you tag multiple directories :( > Curious that there are non start or end indications when we're doing a > tag, anyway... This is CVS's modus operandi. We can get it to work for commits because CVS makes multiple calls to *two* hook scripts -- the commitinfo script is called once for each directory, then the loginfo script is called once for each directory. CVSspam's commitinfo hook records the last directory it was used on, and the loginfo hook uses that record to identify its own final invocation. A nasty hack, but it seems to work. > I'll previously use CVSMailer on CVSNT (windows) and there was this > functionnality > But after some research I'm not sure the Unix CVS is working the same > way because this tool support taginfo for windows but not Unix > http://www.devguy.com/moin.cgi/CvsNotify I had a really quick look at the code and couldn't see it doing anything special. I guess CVSNT is different here. > Did you knew it ? They reference CVSSPam, nice isn't it ;) Yep, there's a link back to devguy.com on the CVSspam page too :) dave