No able to log out to console with Console.WriteLine() with a hook

34 views
Skip to first unread message

Void

unread,
Dec 22, 2017, 1:22:11 PM12/22/17
to TortoiseSVN
I'm trying to log a message to a user before input but it's not logging anything, am I doing something wrong? 

Stefan

unread,
Dec 23, 2017, 2:57:41 AM12/23/17
to TortoiseSVN


On Friday, December 22, 2017 at 7:22:11 PM UTC+1, Void wrote:
I'm trying to log a message to a user before input but it's not logging anything, am I doing something wrong? 

A hook script can not change the commit message the user entered.
If you want a dialog to show up with a message for the user, you have to return an exit code that's not zero from the script and write the message to the error output.

Void

unread,
Jan 8, 2018, 8:39:31 PM1/8/18
to TortoiseSVN
Sorry I'm trying to log out to the console window a simple `Console.WriteLine("aaa");` not a dialog window. 
Reply all
Reply to author
Forward
0 new messages