>> I can give you a simple patch setting the environment variable
>> CVS_USERNAME to "roland" (while keeping USER as "cvsiti"),
> Folks are aware, I hope, that the functionality of this patch is already
> exposed by CVS and documented in the Cederqvist?
Thanks for pointing this out, Laird. I herewith retract the patch
and unpatch my CVS version.
FYI, this escaped me in the Cederqvist because this special variable
substitution appeared to me as a regular environment variable with
its regular $SYNTAX and all the other shell piping / redirecting,
and quoting being used in the examples.
Another thing which lead my astray was that at least some other of
the internal variables are reflected as environment variables.
(For example, CVSROOT.) I wouldn't have expected $USER to work
differently on the command line as opposed to within the script.
The "loginfo" node lists its own special %{sVv} substitutions,
and it refers to the commit info / common syntax node. This
is a dead end. Another reference here pointing to the "Variables"
node would be helpful.
> You don't use an
> environment variable to get at it, you use a "user variable" in your
> commit/loginfo scripts.
>
> So your commit/loginfo line would look like this:
>
> # example
> DEFAULT /your/script/here $USER
Strictly speaking, this is an "internal variable" which is set by
the cvs server. User variables are, according to the Cederqvist,
only those variables appearing as $=FOO and set by the client/user
(hence their name). Nevertheless, thanks for setting me straight!
> logaccum.pl or whatever it's called should probably be updated to use this
> variable to prevent this patch from being needlessly applied.
It has, this was the change in February. I only recognize now what's
going on there.
Martin