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

Re: can't get post-commit.bat to execute in win32

From: Maddes <maddes_svnlists_at_arcor.de>
Date: 2007-09-09 16:42:53 CEST

Hello AC,

Try the the following line as your "C:\repos\Summary\hooks\post-commit.bat":
echo committed >C:\repos\Summary\log.txt

If the file is created then the post-commit is working.
When doing several tests please take note of the creation timestamp.

This works for me under Win XP SP2 via file and svn access.

Which SVN version are you using?
How do you access the repository? file:///? svn://?
What is the correct path of your repository? "c:\svnrepo\test" or
"C:\repos\Summary"?

Regards
Maddes

On 09.09.2007 16:22, AlarmChang wrote:
> Dear all:
>
> I just have same problem.
> my project repors is
> C:\repos\Summary
> I put post-commit.bat into C:\repos\Summary\hooks
> After I commit, svn just never execute post-commit.bat~~~
> How to solve this problem, ~~ help I have spend many days on it Orz...
> Any body help me~~~ >"<
>
> Have a good day.
> Alarmchang.
>
>
> Tetsuto Teddy Nishiyama wrote:
>> Ryan,
>>
>> Sorry for the late response. Thanks, yes, I found that
>> I needed to specify the path. However, I found that
>> unlike what the document says for UNIX machines, it seems
>> that in Windows, the environments (such as PATH) are
>> still defined and usable. So, my problem was that the
>> script was executing in a different "current directory"
>> than what I had thought.
>>
>> Teddy
>>
>> Ryan Schmidt wrote:
>>
>>> On Apr 17, 2006, at 07:53, Tetsuto Teddy Nishiyama wrote:
>>>
>>>> POST-COMMIT
>>>> file c:\svnrepo\test\hooks\post-commit.bat
>>>>
>>>> content: (just one line)
>>>>
>>>> echo running post-commit.bat >> test.txt
>>>>
>>>> should create a file and add "running post-commit.bat" to it.
>>>
>>> Try specifying the complete path to test.txt. On Unix-like systems this
>>> is required; I'm not sure about Windows.
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>>> For additional commands, e-mail: users-help@subversion.tigris.org
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Sep 9 16:39:34 2007

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.