I'm looking for a way to cancel a pre commit hook on a error. I only want
the user to enter a number between 1 and 2 and if it's not I need to cancel
the commit, how can I do this?
int val;
if (!int.TryParse(Console.ReadLine(), out val))
{
Console.Error.WriteLine("Please enter a number");
return;
}
--
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/a8265282-d561-418c-820d-d8d81c4b17ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.