Fw: [cvsnt] Re: CVSNT incompatibility with older servers

bwhicks at aep.com bwhicks at aep.com
Fri Oct 14 19:57:50 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.


Success!

I finally got a loginfo script that works for me. I'm not sure why, but it
seems like "%s %V %v" is somehow different than "%{sVv}".

Here is what I got to work. My loginfo file looks like this:

DEFAULT $CVSROOT/CVSROOT/fix_loginfo.pl %{sVv},$CVSROOT,$USER

fix_loginfo.pl then parses the arguments according to where the commas are
instead of what the ARGV's are, because that is how %{sVv} behaves (if I
pass them individually, I get that funky hang). So my perl looks like this:

my @newARGV = split (/\,/,"@ARGV");
if ($newARGV[0] =~ /(\w+)\/+(\w+) \- New directory\s*/ ) {
    $output = $timestamp." A new directory called ".$2
              ." was created in ".$1." by user ".$newARGV[4];
} else {
    $output = $timestamp." User ".$newARGV[4]
              ." has changed the file '".$newARGV[0]
              ."' from version ".$newARGV[1]
              ." to version ".$newARGV[2];
}

`echo "$output" >> $newARGV[3]/CVSROOT/commitlog `;

Thanks for your help, everyone...

Brian



                                                                           
             bwhicks at aep.com                                               
             Sent by:                                                      
             cvsnt-bounces at cvs                                          To 
             nt.org                    Tony Hoyle                          
                                       <tony.hoyle at march-hare.com>,        
                                       bo.berglund at telia.com               
             10/13/2005 08:42                                           cc 
             AM                        cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook                     
                                                                   Subject 
                                       Re: Fw: [cvsnt] Re: CVSNT           
                                       incompatibility with older servers  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Tony and Bo,

Your information here is greatly appreciated. I am going to try to modify
my scripts to check for these cases and see what I come up with. I'll post
back the results...

Brian





             Tony Hoyle
             <tony.hoyle at march
             -hare.com>                                                 To
             Sent by:                  cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
             cvsnt-bounces at cvs                                          cc
             nt.org
                                                                   Subject
                                       Re: Fw: [cvsnt] Re: CVSNT
             10/12/2005 05:13          incompatibility with older servers
             PM









Bo Berglund wrote:

> I did once (in 2003 according to the cvs annotations on the source
> lines that do the detection work) check up on exactly what CVSNT sends
> as the arguments with %{sVv} when a new folder is added, but I have
> forgotten what it does now. It definitely was a problem though because
> the argument list was different.
>
Directories don't have versions, so the Vv bit is a noop (normally ends
up with a couple of commas at the end IIRC).

The second argument is "- New Directory".

Tony
_______________________________________________
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


_______________________________________________
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