到目前为止,我已经尝试了几件事,但我还没有多少运气.我正在尝试使用命令行或PowerShell脚本,我可以每天运行一次,以确保我的众多检出项目是最新的.
我知道我会循环遍历工作区内的目录文件夹,但是在设置变量时我没有运气,因为它会出错.我正在使用TortoiseSVN和Windows Vista.
这是我到目前为止:
echo == Initiating system instance variables...
echo. -- Setting the variables...
:: Here you need to make some changes to suit your system.
set SOURCE=C:\workspace\Project
set SVN=C:\Program Files\TortoiseSVN\bin
:: Unless you want to modify the script, this is enough.
echo. %SOURCE%
echo. %SVN%
echo. ++ Done setting variables.
echo.
echo == Updating source from SVN
echo. -- Running update...
"%SVN%\TortoiseProc.exe" /command:update /path:"%SOURCE%" /closeonend:2
echo. ++ Done.
echo. -- Cleaning up...
set SOURCE= …Run Code Online (Sandbox Code Playgroud)