[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: passing username to "verifymsg"
From: |
Mark E. Hamilton |
Subject: |
Re: passing username to "verifymsg" |
Date: |
Tue, 19 Jun 2007 09:24:25 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.12) Gecko/20050920 |
mahmud fatafta wrote:
I need to know the user id of the person trying to check/commit a change.
When I tried to use ${user} the perl script that I am using is failing,
it is expecting a file with the log message to be passed in. How can I
pass the user id to the script?
Thank you in advance.
See here
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_18.html#SEC183
and the third paragraph here.
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_18.html#SEC172
So if you had something like this in your verifymsg trigger script
DEFAULT your_script ${USER}
then your_script would be passed the username in the first parameter and
the log message file in the second parameter. You can do the same sort
of thing with the commitinfo trigger script. See here for the parameters
to it:
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_18.html#SEC171
--
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666