-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Tyler <[EMAIL PROTECTED]> 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-----
_______________________________________________
info-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/info-cvs