info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the branch name into the commitlog and email message


From: Cloud Burst
Subject: Re: How to get the branch name into the commitlog and email message
Date: Mon, 28 Nov 2005 01:38:44 -0800

On Sun, 27 Nov 2005 23:49:41 -0800, "Mark D. Baushke" <address@hidden> wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Cloud Burst <address@hidden> writes:
>
>> Running CVS 1.11.2 and a log_accum script from way before that.  
>
>That is an ancient version of cvs. You should consider an upgrade to
>something newer without the bugs and security holes it has.

Yep.  But are you telling me my desire is so uncommon that it's not 
a standard part of CVS yet?  Or are you saying a newer version of 
CVS would have it?  Sounds like you're saying a newer version would 
not fix my problem.  

>> I'm trying to get the branch name into the commitlog and the email 
>> that goes out, but I'll be damned if I can see how it's done.  
>
>You may find doing a 'cvs -Q -n status' command on the files of interest
>and parsing the output to be the most 'portable' solution.

Can't do this.  I'm running client/server and the server doesn't have 
any files checked out.  I had a hack all figured out (look for CVS/Tag 
file and read its contents) but I found out that won't work either.  

>> The log_accum script was hacked a little (a long while ago) to get 
>> the email From set correctly and the subject line looking right, 
>> but not very much else, since it was checked in, anyway.  
>> 
>> Also, in the loginfo file at the end of the line that calls the 
>> log_accum script is 
>> 
>>   ${Vvts} 
>
>Well, first, it would be %{Vvs} for cvs 1.11.x the loginfo file
>(the %t is not a supported format string for loginfo).
>
>Although, I suppose if you have local hacks to the cvs sources, you
>might have defined %t switch to be the tagname. The %V is the old
>version number and %v is the new version number and %s is the filename.
>
>> Anybody know what this does or is supposed to do?  I don't think 
>> it does very much.  
>
>With a ${Vvts} it would try to expand an environment variable and
>probably do nothing but expand to '' as an argument to your script.
>
># You may specify a format string as part of the
># filter.  The string is composed of a `%' followed
># by a single format character, or followed by a set of format
># characters surrounded by `{' and `}' as separators.  The format
># characters are:
>#
>#   s = file name
>#   V = old version number (pre-checkin)
>#   v = new version number (post-checkin)
>#
># For example:
>#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
># or
>#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog

Thanks again.  I already found that documentaton in the meantime.  Now 
I think I may have to customize cvs if there isn't a reasonable script 
based solution.  

>       Good luck,
>       -- Mark
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.3 (FreeBSD)
>
>iD8DBQFDiraVCg7APGsDnFERAlCeAJ96Axii3vnLlrwvv4/h+q0tVXeLfgCfdiuy
>wkpKTe5kQASbTFacjV/A2J0=
>=aovj
>-----END PGP SIGNATURE-----
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]