小编Jos*_*son的帖子

用于更新SVN文件夹的命令行

到目前为止,我已经尝试了几件事,但我还没有多少运气.我正在尝试使用命令行或PowerShell脚本,我可以每天运行一次,以确保我的众多检出项目是最新的.

我知道我会循环遍历工作区内的目录文件夹,但是在设置变量时我没有运气,因为它会出错.我正在使用TortoiseSVNWindows 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)

svn powershell command-line

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

command-line ×1

powershell ×1

svn ×1