Hello,

On Tue, Jun 25, 2013 at 10:01 PM, Aahlad kancharla
<venkataaahl...@gmail.com> wrote:
> I am trying to run another batch file from post-commit.bat file  but I am
> not able to do it. I mean there are no errors and I get the desired output
> in the text file after redirecting it but I cannot see the changes in my
> sytem. Example : I have created a folder in C drive through other batch
> file. I can see the folder has been created as in the text file but no
> folder in the C drive.
>
> Whats the problem?

If the question related to the previous one? Nevertheless, it would be
very helpful to see the code of your post-commit.bat hook script and
the output you get in the referenced text file.

A couple of general tips to help you troubleshoot the hook script:

1. Make sure that the service account of VisualSVN Server service
("Network Service" by default) has enough access permissions to
the other batch file you want to call and other locations it touches,

2. Make sure that all paths in the post-commit hook are valid,

3. If it still does not work, then you can capture the hook output to
a log file to get some clues on the root cause:

* Rename your current post-commit.bat file to post-commit-run.bat.

* Create the following file as your post-commit.bat file:

[[
call "%~dp0post-commit-run.bat" %* > %1/hooks/post-commit.log 2>&1
]]

* Commit to the repository and check the generated 'post-commit.log'
file. What is logged there? Any errors?

4. You may also want to check related SVNBook sections:

"Implementing Repository Hooks":
http://www.visualsvn.com/support/svnbook/reposadmin/create/#svn.reposadmin.create.hooks
"post-commit": 
http://www.visualsvn.com/support/svnbook/ref/reposhooks/post-commit/

-- 
With best regards,
Pavel Lyalyakin
VisualSVN Team

-- 
You received this message because you are subscribed to the Google Groups 
"VisualSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to visualsvn+unsubscr...@googlegroups.com.
To post to this group, send email to visualsvn@googlegroups.com.
Visit this group at http://groups.google.com/group/visualsvn.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to