1. 程式人生 > >SVN控制刪除的許可權,使用者不能刪除檔案

SVN控制刪除的許可權,使用者不能刪除檔案

====================== @echo off setlocal set Repos=%1 set TXN=%2 set SCM=SCMID

svnlook author -t "%TXN%" "%Repos%" | findstr "%SCM%" IF %ERRORLEVEL% gtr 0 goto check exit 0

:check svnlook changed -t "%TXN%" "%Repos%" | findstr "^D" if %ERRORLEVEL% == 0 goto err pause exit 0

:err echo Only SCM can delete files or folders. 1>&2 pause exit 1 ===================================================