Jump to content

Recommended Posts

Alright, I have some simple length checking down for my pre-commit using svnlook log to get the commit comment. Pretty easy stuff so far

 

<?php

/*
	test to see if comment length is greater than or equal to 10 chars
*/
$log = exec("svnlook log -t ". $argv[2] ." ". $argv[1]);
if(strlen($log) > 9){
	exit(0);
}else{
	exit(1);
}
?>

Im such a noob and scared to go outside of php. lol not really, but php is easiest at the moment for me to churn out results. and my place of employment is not trying ot hear "we'll it took me about an hour to learn python..." 

 

workin for the man sucks

 

anyway, I have that script running, checkin the strlen. I just need to set the STDERR so that I can tell the user that the comment that they've entered was too damn short. Anyone know how to do this?

 

Thanks guys

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.