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 Fri, 27 Jan 2006 16:45:50 -0000, "kerry richard" <richard.kerry at siemens.com> wrote: >Please could someone post a valid line to put into 'precommand' for me to see it working, in particular something using a batch file. I've tried a variety of syntaxes that I thought might work but so far nothing does. > >for example : >ALL echo "Hello from precommand !" >ALL echo Hello >ALL "C:/windows/system/cmd.exe -c echo Hello" >ALL "E:/Data/CVS/cvsrepo/CVSROOT/default_precommand.bat %c > >Noe of these appear to work, in that from Tortoise I get : >Script execution failed >cvs server: Pre-command check failed > ><red> >Error, CVS operation failed (exit code 1) ></red> > >What am I doing wrong ? >Basic examples with the commands in the ALL line, and calls from the ALL line to a batch file would both be appreciated. > > It is very simple, really. I fixed a test in about 3 minutes: 1. Create a batch file C:/Temp/cvstst/precmdtest.bat: @echo off c: cd c:\Temp\cvstst echo User: %1 echo Param2: %2 echo Param3: %3 echo Param4: %4 2. Edit and commit the precommand file: ALL C:/Temp/cvstst/precmdtest.bat $USER %r %c %d 3. Do an update on a file that is up-to-date: cvs update -- ThirdFile.txt User: AGIUSA\Bosse Param2: /KORVkiosk Param3: update Param4: "Fri Jan 27 17:37:56 2006" /Bo (Bo Berglund, developer in Sweden)