[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the branch name into the commitlog and email message
From: |
Mark D. Baushke |
Subject: |
Re: How to get the branch name into the commitlog and email message |
Date: |
Sun, 27 Nov 2005 23:49:41 -0800 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Cloud Burst <address@hidden> writes:
> Running CVS 1.11.2 and a log_accum script from way before that.
That is an ancient version of cvs. You should consider an upgrade to
something newer without the bugs and security holes it has.
> I'm trying to get the branch name into the commitlog and the email
> that goes out, but I'll be damned if I can see how it's done.
You may find doing a 'cvs -Q -n status' command on the files of interest
and parsing the output to be the most 'portable' solution.
> The log_accum script was hacked a little (a long while ago) to get
> the email From set correctly and the subject line looking right,
> but not very much else, since it was checked in, anyway.
>
> Also, in the loginfo file at the end of the line that calls the
> log_accum script is
>
> ${Vvts}
Well, first, it would be %{Vvs} for cvs 1.11.x the loginfo file
(the %t is not a supported format string for loginfo).
Although, I suppose if you have local hacks to the cvs sources, you
might have defined %t switch to be the tagname. The %V is the old
version number and %v is the new version number and %s is the filename.
> Anybody know what this does or is supposed to do? I don't think
> it does very much.
With a ${Vvts} it would try to expand an environment variable and
probably do nothing but expand to '' as an argument to your script.
# You may specify a format string as part of the
# filter. The string is composed of a `%' followed
# by a single format character, or followed by a set of format
# characters surrounded by `{' and `}' as separators. The format
# characters are:
#
# s = file name
# V = old version number (pre-checkin)
# v = new version number (post-checkin)
#
# For example:
#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
# or
#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
Good luck,
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQFDiraVCg7APGsDnFERAlCeAJ96Axii3vnLlrwvv4/h+q0tVXeLfgCfdiuy
wkpKTe5kQASbTFacjV/A2J0=
=aovj
-----END PGP SIGNATURE-----
- How to get the branch name into the commitlog and email message, Cloud Burst, 2005/11/28
- Re: How to get the branch name into the commitlog and email message,
Mark D. Baushke <=
- Message not available
- Re: How to get the branch name into the commitlog and email message, Cloud Burst, 2005/11/28
- Re: How to get the branch name into the commitlog and email message, Mark E. Hamilton, 2005/11/28
- Re: How to get the branch name into the commitlog and email message, Mark D. Baushke, 2005/11/28
- Re: How to get the branch name into the commitlog and email message, Russ Sherk, 2005/11/28
- Re: How to get the branch name into the commitlog and email message, Larry Jones, 2005/11/28
- Re: How to get the branch name into the commitlog and email message, Russ Sherk, 2005/11/28
- Re: How to get the branch name into the commitlog and email message, Jim Hyslop, 2005/11/28
- Re: How to get the branch name into the commitlog and email message, Spiro Trikaliotis, 2005/11/29
- Re: How to get the branch name into the commitlog and email message, Russ Sherk, 2005/11/29
- test please delete, Farshad Mahjoubi, 2005/11/29