[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to trigged the hook script?

From: Wu jiaxian <jiaxian01_at_gmail.com>
Date: 2004-10-09 03:21:48 CEST

Hi, Ben,
I didn't set the %path% in batch file, but I set the %path% before I
checkin with the command-line mode in cmd.exe.

I call a perl script file which could check the code style in batch file,
and the perl script file is place in hooks subdirectory.
And in batch file I echo some sentences, for example I echo the string
like this "Hello, world", and when I checkin, the cmd.exe dos'nt echo
the "hello, world"

My batch file is :
------------------------------------------------------------------
set REPOS="%1"
set TXN="%2"

echo haha
echo %1 %2
d:\perl d:\temp\cstyle.pl %1\%2
------------------------------------------------------------------
Just as the "echo %1 %2" didn't echo, I consider the perl script didn't trigged.

Thanks.

On Fri, 8 Oct 2004 07:55:12 -0500, Ben Collins-Sussman
<sussman@collab.net> wrote:
>
> On Oct 8, 2004, at 4:48 AM, Wu jiaxian wrote:
>
> > Hi all,
> > I have problem about hooks script.
> > My platform is Win2k,and the subversion is run on win2k.
> > In this case:
> > When someone want to checkin his code to subversion server,then the
> > suvbersion
> > server will check his code style, if his code style unfit, the
> > subversion server will not allow
> > the programer checkin his code.
> > The folow is what I do:
> > In the repository directory, in the hooks subdirectory, I place the
> > *.bat named start-commit.bat , pre-commit.bat, etc
> > But when I checkin the code to the subversion server, the hooks script
> > dosen't check
> > the code style.
> > And I have set the %path% right value that I expect.
> >
> > Where is my fault?
> >
>
> Do you set %path% in the batch file? Perhaps you could show us the
> batch file.
>
>

-- 
Jiaxian Wu
mail:jiaxian01@gmail.com
qq:61460982
msn:jiaxian01@hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 9 03:23:06 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.