orbrey
Hi there, This should work for you - though you'll need to make sure you put in the correct path to svnlook.exe in the quotes and change 'ABCD' to the actual string you require to be in there: "C:\Program Files\WANdisco\Subversion\svnlook.exe" log -t %2 %1 | FindStr ABCD IF %ERRORLEVEL% EQU 0 GOTO OK echo "Commit message must contain ABCD" >&2 exit 1 :OK exit 0
Hope that helps.
Coder
Thanks a ton for your help orbrey. Much appreciated.
Coder
Sorry, a quick question..Whats the svnlook.exe path pointing to?
I can only see this path on my computer
C:\Program Files\TortoiseSVN
orbrey
That'd be the one - if you look in that folder you should see svnlook.exe in there :) EDIT: Apologies, the path I quoted above is taken from my command line Subversion install. If you look in the bin folder in the TortoiseSVN folder you posted above you should find svnlook.exe in there.
faizan123
That list command gives an error when the directory does not exist. That only works if the directory already exist. How do I handle the error when the directory does not exist ?
rechly140
Great information, i read your all post. Thanks Rechly Parker IT Analyst SageNext Infotech LLC