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.
Thomas Muller wrote: > 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>). > > The files will be in the current directory, just read the files based on the name in the standard input. Tony