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:
> [EMAIL PROTECTED] 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



_______________________________________________
Info-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/info-cvs

Reply via email to