No, I need to commit a file that the hook updates. So start-commit hook is what I need. You are correct about the return, I was using a void. Thank you so much this really helped!
On Wednesday, December 13, 2017 at 10:51:37 AM UTC-8, Stefan wrote: > > > > On Tuesday, December 12, 2017 at 10:19:46 PM UTC+1, Void wrote: >> >> I added it as as a hook script in the Hook Scripts settings. It's a >> start_commit_hook, and yes it's called as I get console window to enter to >> the console. >> When I enter a letter and read it with Console.ReadLine() the function >> should exit out and popup a error message, but it's not showing the error >> and it continues with the commit. >> > > first: maybe you may want a check-commit hook instead start-commit hook. > But that's just my guess. > second: you also have to return from your script with a non-null exit code > to indicate an error. If your script returns with zero, then that means no > error. > > Stefan > > -- You received this message because you are subscribed to the Google Groups "TortoiseSVN" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/dcee7148-dda9-4336-873f-6c77cf5d2123%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
