Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: hook on commit problem/bug

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Back to topic list

Re: hook on commit problem/bug

Author decybel brzeszczot <d dot grzeszczak at gmail dot com>
Full name decybel brzeszczot <d dot grzeszczak at gmail dot com>
Date 2008-10-30 14:14:40 PDT
Message On 30 Paź, 20:28, Stefan Küng <tortoise...@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

« Previous message in topic | 7 of 19 | Next message in topic »

Messages

Show all messages in topic

hook on commit problem/bug decybel brzeszczot <d dot grzeszczak at gmail dot com> decybel brzeszczot <d dot grzeszczak at gmail dot com> 2008-10-30 11:38:21 PDT
     Re: hook on commit problem/bug Andy Levy <andy dot levy at gmail dot com> Andy Levy <andy dot levy at gmail dot com> 2008-10-30 11:46:44 PDT
         Re: hook on commit problem/bug decybel brzeszczot <d dot grzeszczak at gmail dot com> decybel brzeszczot <d dot grzeszczak at gmail dot com> 2008-10-30 12:01:44 PDT
             Re: hook on commit problem/bug Andy Levy <andy dot levy at gmail dot com> Andy Levy <andy dot levy at gmail dot com> 2008-10-30 12:05:08 PDT
                 Re: hook on commit problem/bug decybel brzeszczot <d dot grzeszczak at gmail dot com> decybel brzeszczot <d dot grzeszczak at gmail dot com> 2008-10-30 12:18:17 PDT
                     Re: hook on commit problem/bug steveking Stefan Küng 2008-10-30 12:28:32 PDT
                         Re: hook on commit problem/bug decybel brzeszczot <d dot grzeszczak at gmail dot com> decybel brzeszczot <d dot grzeszczak at gmail dot com> 2008-10-30 14:14:40 PDT
                             Re: hook on commit problem/bug steveking Stefan Küng 2008-10-31 10:17:05 PDT
                                 Re: hook on commit problem/bug decybel brzeszczot <d dot grzeszczak at gmail dot com> decybel brzeszczot <d dot grzeszczak at gmail dot com> 2008-11-03 02:17:44 PST
                                     Re: hook on commit problem/bug steveking Stefan Küng 2008-11-03 02:26:41 PST
                                         Re: hook on commit problem/bug decybel brzeszczot <d dot grzeszczak at gmail dot com> decybel brzeszczot <d dot grzeszczak at gmail dot com> 2008-11-03 02:39:20 PST
                                             Re: hook on commit problem/bug steveking Stefan Küng 2008-11-03 02:50:45 PST
                                                 Re: hook on commit problem/bug decybel brzeszczot <d dot grzeszczak at gmail dot com> decybel brzeszczot <d dot grzeszczak at gmail dot com> 2008-11-03 03:47:34 PST
                                                     Re: hook on commit problem/bug steveking Stefan Küng 2008-11-03 10:15:31 PST
                                                         RE: Re: hook on commit problem/bug postmaster at tigris dot org postmaster at tigris dot org 2009-01-06 04:42:29 PST
                                                             Re: hook on commit problem/bug Kurt Pruenner <leak at gmx dot at> Kurt Pruenner <leak at gmx dot at> 2009-01-06 05:33:11 PST
                                                             Re: hook on commit problem/bug steveking Stefan Küng 2009-01-06 09:43:44 PST
                                                                 RE: Hook on commit problem/bug webpost at tigris dot org webpost at tigris dot org 2009-04-01 18:39:29 PDT
                                                                     Re: Hook on commit problem/bug steveking Stefan Küng 2009-04-02 08:44:50 PDT
Messages per page: