[cvsnt] Re: Loginfo branch

Bo Berglund bo.berglund at telia.com
Tue Oct 5 06:47:58 BST 2004


On Mon, 4 Oct 2004 18:28:45 -0700, "Stuart Stevens"
<stuart_stevens at sierralogic.com> wrote:

>Within a loginfo script or program, is there an easy method of determining
>the branch tag used for the commit?
>
> 
>
>I assume that the script could read the file and extract the branch tag from
>the checked in file.
>
> 
>
>I am currently using CVSNT 2.0.41 running on Linux.
>

Yes,
the information sent on STDIN contains a list of files and branch
tags. Each file can be associated to a branch tag this way, but beware
that the same commit can have many files listed and they can all be on
different branches. But this is possible to grab from the STDIN file
listing.
No need to parse any other info than the one supplied to the script
itself.


/Bo
(Bo Berglund, developer in Sweden)



More information about the cvsnt mailing list