hi team i wrote a small pre commit hook script in .bat script to block the committing file going to the repository if conflict markers are present in the file i am getting error with this script could you please help me or please help me or can you give exact code for this in .bat script
@echo off :: Stops commits that don't include a special characters. @echo off setlocal setlocal EnableDelayedExpansion rem Subversion sends through the repository path and transaction id SET REPOS=%1 SET TXN=%2 set str1=D:\Repositories\vsvn pushd %str1% FOR /F "tokens=2 delims= " %%b in ('svnlook changed %REPOS% -t %TXN%') do ( echo %%b 1>&2 set b=%%b:/=\% echo %%b 1>&2 ::svn cat %%b 1>&2 findstr /i /r ">>>>>>>" "%%b" >nul 1>&2 if %errorlevel% == 0 (goto err) else exit 0 findstr /i /r ">>>>" "%%b" >1>&2 ) :err echo ------------------------------ --------------------------------------------- 1>&2 echo Your commit has been blocked because some lines in files has below characters. 1>&2 echo ">>>>>>>" "=======" "<<<<<<<". characters line is is printed above 1>&2 echo --------------------------------------------------------------------------- 1>&2 exit 1 hi team -- 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. For more options, visit https://groups.google.com/d/optout.