[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


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


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
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook