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 steveking
Full name Stefan Küng
Date 2008-10-30 12:28:32 PDT
Message 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
Attachments

« Previous message in topic | 6 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: