[cvsnt] still filename and version on taginfo

Bo Berglund Bo.Berglund at system3r.se
Tue Jun 1 13:39:09 BST 2004


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.


Well,
I program my handlers in Delphi which produces exe files and in this case
I use the following commands to get the standard input text:

function GetStandardInMsg(var sMsg:string):boolean;
var
	C: char;
begin
	Result := false;
	try
		sMsg := '';
		AssignFile(Input, '');
		Reset(Input);

		{From Usenet: Take a look at the WaitForSingleObject in the remarks section}
		if WaitForSingleObject(GetStdHandle(STD_INPUT_HANDLE), 100) = WAIT_OBJECT_0	then
			while not Eof(Input) do
			begin
			 Read(Input, C);
			 sMsg := sMsg + C;
			end;
	except
	end;
	{Now extract the log message from the input}
	CommitLogMessage := '';
	if Pos('Log Message:', sMsg) > 0 then
		CommitLogMessage := Copy(sMsg, Pos('Log Message:', sMsg) + Length('Log Message:'), Length(sMsg));
	Result := (Length(sMsg) > 0);
end;

HTH,
Bo

-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Elisa Cargnel
Sent: den 1 juni 2004 11:01
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Subject: [cvsnt] still filename and version on taginfo


>I couldn't find any example or documentation about it, 
>

As the text says you have to read *standard input* not command line
arguments. So your script must get the list of files/revisions from
standard input. 
This is changed from the way standard CVS works because the taginfo
script failed on Windows when there were many files with long names in
a module folder. The maximum length of the command line in Windows
(some 4000 characters) was exceeded and then the taginfo execution
exited with an error and the tagging failed. By moving to STDIN this
long information does no longer break tagging operations.
------------

Thank you very much for your explanation, 
as this is something that I didn't tried before,
do you have any example on how to do this? 
I'm tring to get the filename/version list 
from a .bat file that is called in the taginfo file
I guess that it is something like:
< to_a_file
??
this of course doesn't work.
Thank you in advance for any help.
elisa


Elisa Cargnel - OAT Informatica
e-mail: elisa.cargnel at oatinformatica.it 
           elisa.cargnel at enel.it 
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook