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

Re: hook on commit problem/bug

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 30 Oct 2008 20:28:32 +0100

decybel brzeszczot wrote:
> so ok I understand that you don't know solution or I don't understad
> you.
>
> Forgot email notification. For example I want open notepad when I
> commit project. What for ? I don't know ? I want ;)
> -I go to Tortoise setting.
> -I add hook on project and in "Command line to excecute" i write
> "notepad".
> -Now I add something.txt file to project.
> -commit - ( work fine, commit done, notepad is on my screen)
> -delete "something.txt"
> -commit ( Error: The hook script returned an error:)

As the docs clearly state, the hook script MUST return a value to
indicate error or success. And an error message must be written to stderr.

An empty bat file or some random exe won't do.

If you want to use an example bat file, use one with the following line
in it:

exit 0

or

exit 1

You can find example script in our contrib folder.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

Received on 2008-10-30 20:28:46 CET

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

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