[cvsnt] Re: postcommit file

Bo Berglund bo.berglund at telia.com
Thu Feb 13 21:42:09 GMT 2003


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


On Thu, 13 Feb 2003 20:56:10 +0000, Tony Hoyle <tmh at nodomain.org>
wrote:

>Bo Berglund wrote:
>
>> You can use the $CVSPID variable to get at the cvs process running the
>> commit so you can read the correct info in the postcommit file (but
>> you have to expande the PID a bit and get extra info to make the
>> identifier unique, like I had to in my mailing program).
>> 
>Or use $COMMITID, which should always be unique...
>
>Tony
Rats,
when was that introduced? Did I work in vain?...

I have dived firly deep into Windows API to use the PID (which is not
unique even across some minutes) to grab the process start time in the
100ns tick counter and use that as a unique identifier for the
process. Actually I use the lower 32 bits of that as the ID...

BTW:
When was $CVSPID introduced?


/Bo
(Bo Berglund, developer in Sweden)


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook