svn ci的简单改写了下,保证写message

在ci 代码的时候,经常忘记mess。写了一个脚本保证不会忘记message

 

@echo off

 

set msg=

set review=

set code=

set pp=

set ok=

 

echo %msg%

 

:CL_msg

set /p msg=message:

if "%msg%" == "" goto CL_msg

 

 

:CL_review

set /p review=reviewby:

if "%review%" == "" goto CL_review

 

 

:CL_code

set /p code=code:

if "%code%" == "" goto CL_code

 

:CL_ci

set pp=svn ci %code% -m "%msg% reviewby %review%"

set /p ok=组合的命令为: %pp% 是否需要执行(y/n)?

 

if "%ok%" == "y" (

echo ---------------------------

echo ---------------------------

 call %pp%

) ELSE  (

 if "%ok%"== "n" (

goto CL_end

) else (

goto CL_ci

)

)

 

:CL_end

你可能感兴趣的:(SVN,脚本)