[cvsnt] Problem with Loginfo???

Bo Berglund Bo.Berglund at system3r.se
Wed Jun 22 08:21:56 BST 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.


This problem is entirely with your vbs script itself.
It is known that the cscript engine sometimes does not do what you think it
should. Please replace the call to something like this instead:

ALL C:/test/Test.bat "%{sVv}"

The batch file Test.bat should just consist of something like this:

@echo off
echo This is a test for loginfo handling
echo Parameter 1 = %1
echo Parameter 2 = %2
echo Parameter 3 = %3
echo Parameter 4 = %4
echo Test finished

When you make a commit expect the following output in the cvs client view:

This is a test for loginfo handling
Parameter 1 = <modulename> <first file> <second file> <third file>
Parameter 2 =
Parameter 3 =
Parameter 4 =
Test finished

There should be only one parameter output because the quotes you have put there
will define the params as a single one.

/Bo

-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Ho How Hon
Sent: den 22 juni 2005 08:44
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Subject: Re: [cvsnt] Problem with Loginfo???


>
> There is *only* one line that is supposed to be executed in the
> loginfo script. This is the very first match that is found.
> Additionally the most recent CVSNT versions will examine lines that
> contain the + in front of them to see if these also match.
> Note that there was interim testing versions that executed all lines
> thta matched but that was later replaced with the + syntax, so the
> behaviour is very much depending on the actual build of CVSNT.
>
> If no match at all is found then the DEFAULT line will execute.
>
> And on top of that the ALL line will also execute.
> I have no idea what happens if there are several ALL lines, that is a
> situation I have never encountered....
>
>

Thanks for all the explanation. It has really helped me uinderstand how the
system function better. However, I am still facing the problem that I
originally posed, that is, the module folder is not passed in the argument.
I suppose I should change my loginfo file as follows:

ALL cscript.exe D:/CVS/cvsrepo/test/CVSROOT/logbugdata.vbs "%{sVv}"
MyProject C:/Programs/CVSMailer/CVSMailer.exe -l$CVSPID $USER
$CVSROOT -rcvs_test
%{sVv}

This is becuase I need to control who the notification messages get sent to.
I would be having different projects in the same repository and each project
will have different members. However, the vbs script should be executed for
all projects.

When I change my loginfo script as described, my vbs script is missing the
module folder argument. What are my options available to achieve what I want
to do, apart from modifying my vbs script to get the module folder from
stdin?


_______________________________________________
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