[cvsnt] Logging Filename and revision using taginfo

Koch-Luerding, Rainer RD-AS5 Rainer.Koch-Luerding at heidelberg.com
Tue Feb 8 16:28:32 GMT 2005


Hi list.

I want to log filename and revision of the tagged file with the "cvs
tag"-command.
But I only get tagname, repository and option.

Server : cvsnt2.0.58d/Windows2003
Client : TortoiseCVS

>>>>>>>>>>>>>>>>>>>BEGIN SCRIPT
use strict;
use Time::Local;

open (TAGLOG,">> C:\\work\\CVS-Repository-heipc80035\\CVSROOT\\tag.log")
|| die "cannot open Logfile\n";

$_ = $ARGV[0];

if (/^[A-Za-z]/) {
	my $datetime = localtime time;
	print TAGLOG "$datetime|$ENV{USER}|$_|$ARGV[1]|$ARGV[2]\n";
}

#while(<STDIN>)
#	{print TAGLOG $_;}

close (TAGLOG); 
>>>>>>>>>>>>>>>>< END

I also tried "print @ARGV"...

Rainer




More information about the cvsnt mailing list