info-cvs
[Top][All Lists]
Advanced

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

RE: cvs commitinfo question


From: Thomas Wabner
Subject: RE: cvs commitinfo question
Date: Wed, 21 Dec 2005 17:46:03 +0100

Hi Robin,

many thanks for your help! ... looks very nice and after a short view it
works for me ... I will aks again if I run into trouble again  

Regards,

- Thomas Wabner

On Wed, 2005-12-21 at 17:01 +0100, Robin Woehler wrote:
> address@hidden wrote:
> > My problem:
> > How can I give the check-script the branch in which the user tries to
> > checkin his file? Is there is a variable like %r or %s which can I use
> > in the commitinfo file?
> 
> The CVS server will create a CVS subdirectory which does contain a "Tag"
> file if you check in to a branch. You can get the branch from the
> contents of that file. The same technique is used by the
> contrib/cvs_acls script (as far as I know).
> 
> I'm using this in my loginfo script (on a Solaris system):
> 
> # find out which branch the commit went to
> BRANCH=MAIN
> if [ -f CVS/Tag ]; then
>         TAGFILE=`cat CVS/Tag 2>/dev/null`
>         TAGNAME=`expr "${TAGFILE}" : 'T\(.*\)$'`
>         if [ -n "${TAGNAME}" ]; then
>                 BRANCH="${TAGNAME}"
>         fi
> fi
> 
> 
> Hope this helps,
> 
> - Robin





reply via email to

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