解决SVN提交后无法编辑注释问题
建立pre-revprop-change.cmd或者pre-revprop-change.bat
@echo off set repos=%1 set rev=%2 set user=%3 set propname=%4 set action=%5 if /I not '%propname%'=='svn:log' goto ERROR_PROPNAME if /I not '%action%'=='M' goto ERROR_ACTION set bIsEmpty=truefor /f "tokens=*" %%g in ('find /V ""') do set bIsEmpty=falseif '%bIsEmpty%'=='true' goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log properties are not allowed. >&2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log revision properties are allowed. >&2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. >&2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Enjoy it! 转载请注明版权为FalconIA所有
打开你服务端建立的项目如nccm,里面有个hooks目录,把该执行文件放进去,就可以在客户端编辑提交日志了