此文版权属于作者智勇,任何人、媒体或者网站转载、借用都必须征得作者本人同意
@echo
off
rem 版权所有 智勇
set / a REVISION_NUMBER = 1
set OWNER_NAME = ?
for / f " tokens=1,6,7 delims= " %%i in ( 'svn . exe list -v' ) do (
call :SETNUM %%i %%j %%k
)
echo .
echo max revision number : %REVISION_NUMBER%% , owner : %OWNER_NAME%
set REVISION_NUMBER =
set OWNER_NAME =
echo .
pause
goto :eof
:SETNUM
if %1 GTR %REVISION_NUMBER% (
set / a REVISION_NUMBER = %1
if [ %3 ] == [] ( set OWNER_NAME = %2 ) else ( set OWNER_NAME = %3 )
)
goto :eof
rem 版权所有 智勇
set / a REVISION_NUMBER = 1
set OWNER_NAME = ?
for / f " tokens=1,6,7 delims= " %%i in ( 'svn . exe list -v' ) do (
call :SETNUM %%i %%j %%k
)
echo .
echo max revision number : %REVISION_NUMBER%% , owner : %OWNER_NAME%
set REVISION_NUMBER =
set OWNER_NAME =
echo .
pause
goto :eof
:SETNUM
if %1 GTR %REVISION_NUMBER% (
set / a REVISION_NUMBER = %1
if [ %3 ] == [] ( set OWNER_NAME = %2 ) else ( set OWNER_NAME = %3 )
)
goto :eof