Created
November 27, 2018 07:46
-
-
Save x5lcfd/8e9f97abf87d06db7a58209dff32597e to your computer and use it in GitHub Desktop.
svn effective tool(Windows).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM OpCode[update/commit/revert] | |
set Arg1=%1 | |
REM TargetPath[work path,...] | |
set Arg2=%2 | |
set WorkPath1= | |
set WorkPath2= | |
REM ... | |
if /i "%Arg1%" == "update" set OpCode=update | |
if /i "%Arg1%" == "commit" set OpCode=commit | |
if /i "%Arg1%" == "revert" set OpCode=revert | |
if "%OpCode%" == "" goto HELP | |
if /i "%Arg2%" == "workpath1" set TargetPath=%WorkPath1% | |
if /i "%Arg2%" == "workpath2" set TargetPath=%workpath2% | |
REM ... | |
if "%TargetPath%" == "" goto HELP | |
echo Update path %TargetPath% | |
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:%OpCode% /path:"%TargetPath%" | |
exit | |
:HELP | |
echo Usage: psvn OpCode[commit/update/revert] TargetPath[workpath1/workpath2] | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment