SET REPOSITORY=%1%
SET TRANSACTION=%2%
SET ERROR=1
SET SUCCESS=0

REM check if the commit does not have any comments
"C:\Program Files\VisualSVN Server\bin\svnlook.exe" log %REPOSITORY% -t 
%TRANSACTION% | findstr . > null
IF %errorlevel% gtr 0 (GOTO NoCommentError)
 

EXIT %SUCCESS%
 

:NoCommentError
ECHO. 1>&2
ECHO Error: 1>&2
ECHO    There is no comment specified for this commit. 1>&2
ECHO    You must write a comment describing your changes. 1>&2
EXIT %ERROR%


i have wrote the above code in Pre-commit bath 


when ever i commit my file i am getting this error 

A repository hook failed
svn: Commit failed (details follow):
svn: Commit blocked by pre-commit hook (exit code 255) with output:
'findstr' is not recognized as an internal or external command,
operable program or batch file.


let me know the what was my problem 

-- 
You received this message because you are subscribed to the Google Groups 
"VisualSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to visualsvn+unsubscr...@googlegroups.com.
To post to this group, send email to visualsvn@googlegroups.com.
Visit this group at http://groups.google.com/group/visualsvn?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to