[cvsnt] Access to file contents via commitinfo script

Thomas Muller ttm at online.no
Tue May 9 18:53:30 BST 2006


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.


CVS gurus,

I'm trying to create a style checker script via commitinfo, but are having
trouble accessing the contents of the pre-commited file.

I've added the following line to CVSROOT/commitinfo

	Test/* D:/BaseCamp/Tools/Sun/J2SE/1.5.0_06/bin/java -classpath
D:/BaseCamp/CVS/PreCommitChecks PreCommitTest

When I commit a file in the Test directory I get the directory name as an
argument to my PreCommitTest program, and the filename as a line fed into
std-in. However, I don't know how to access the contents of the pre-commited
file; it does not exist as a "temporary" file in the CVS repository, at
least not where I expect to find it (Test/<myfile>). 

Platform:
OS: Win2003 server
CVSNT server version: 2.5.03 (Scorpio) Build 2151

Any input would be much appreciated.

--

Thomas






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