On 30 Pa¼, 20:28, Stefan Küng <tortoise..._at_gmail.com> wrote:
> 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
>
> signature.asc
> < 1KViewDownload
oh so I see that nobody check on real but only talking and
talking ;).
Script not even start so how can it know returned value ( what for is
option "wait for the script to finish" ? when this option is not
checked tortoise don't know reurned value ).
My last test was as you wrote and like is in contrib dir:
- script.js
WScript.Echo("working");
WScript.Quit(0);
as you see always return 0 that mean true
-in tortoise settings:
wscript C:\script.js
and checked "wait for the script to finish"
-Now I add something.txt file to project.
-commit - ( work fine, commit done)
-delete "something.txt"
-commit ( Error: The hook script returned an error:)
what I am doing wrong ? I think it is a bug. My version TortoiseSVN
1.5.5, Build 14361 - 32 Bit , 2008/10/24 18:06:34
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-10-30 22:15:18 CET