[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on loginfo.
From: |
Mark D. Baushke |
Subject: |
Re: Question on loginfo. |
Date: |
Wed, 07 Jun 2006 17:26:15 -0700 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Tyler <address@hidden> writes:
> Background information:
>
> Version of cvs: Concurrent Versions System (CVS) 1.11.20 (client/server)
> System: Linux 2.4.21-4.ELsmp
>
> My current loginfo script currently logs
> information on commits to a file and sends
> e-mail to specified users. I have been asked to
> create a separate log file in addition to the
> current one that includes date, time, user id,
> file name, and branch in a format that can be
> read by another program. Now everything except
> the branch tag is fairly straight forward.
> Currently the branch tag (If it is not a trunk
> commit) is contained in the log message, but to
> my knowledge is not associated with a variable.
>
>
> The question:
> "Is there a better way of obtaining the branch
> tag name from within a loginfo script without
> parsing the actual log message for this
> information?"
br=`cvs -Qn status filename 2>/dev/null |\
grep 'Sticky Tag:' | awk '{print $3}'`
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
iD8DBQFEh26nCg7APGsDnFERAkfhAJ4+nCWejpunHZBM6xhaQhCx9qF7/wCcDaKo
a03Kjb/TEirDwHkGDeMwRVU=
=wzEG
-----END PGP SIGNATURE-----