[cvsnt] Re: filename, version from taginfo file

Bo Berglund bo.berglund at telia.com
Wed May 26 06:57:17 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.

On Tue, 25 May 2004 09:06:34 +0200, "Elisa Cargnel"
<elisa.cargnel at enel.it> wrote:

>I'd like to get as input in my script (used as filter in my taginfo file) the "filename, version".
>Infact the documentation in the tagfile says:
># The "taginfo" file is used to control pre-tag checks.
># The filter on the right is invoked with the following arguments:
># $1 -- tagname
># $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d
># $3 -- repository
># The filter is passed a series of filename/version pairs on its standard input
>this last line let me think that I should be able to get the tagged filename or the tagget filenames list. I tried with $4, $5 but it didn't work.
>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.

(Bo Berglund, developer in Sweden)

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