1. 使用bat脚本文件,快速下载多个svn库到本地。
@echo off
set rootpath= e:\svn
echo ===========Start Project A Dev envroment======================
set projA=%rootpath%\ProjectA\
set dev=%projA%\dev\
mkdir %dev%
echo -------------- 模块1---------------------
set localhome = %dev%\ModuleOne
mkdir %localhome%
svn co https://172.0.0.1/svn/ProjectA/trunk/dev/ModuleOne %localhome%
echo --------------模块2----------------------
set localhome = %dev%\ModuleTwo
mkdir %localhome%
svn co https://172.0.0.1/svn/ProjectA/trunk/dev/ModuleTwo %localhome%
echo -------------- 模块3---------------------
set localhome = %dev%\Model
mkdir %localhome%
svn co https://172.0.0.1/svn/Common/trunk/dev/Model %localhome%
echo =====End Project A Dev enviroment================================
echo ===========Start Project A prod enviroment =========================
set projA=%rootpath%\ProjectA\
set prod=%projA%\prod\
mkdir %prod%
echo -------------- 模块1---------------------
set localhome = %prod%\ModuleOne
mkdir %localhome%
svn co https://172.0.0.1/svn/ProjectA/trunk/prod/ModuleOne %localhome%
echo --------------模块2----------------------
set localhome = %prod%\ModuleTwo
mkdir %localhome%
svn co https://172.0.0.1/svn/ProjectA/trunk/prod/ModuleTwo %localhome%
echo -------------- 模块3---------------------
set localhome = %prod%\Model
mkdir %localhome%
svn co https://172.0.0.1/svn/Common/trunk/dev/Model %localhome%
echo =====End Project A Prod enviroment================================
echo -------------- 模块1---------------------
set localhome = %dev%\ModuleOne
mkdir %localhome%
svn co https://172.0.0.1/svn/ProjectA/trunk/dev/ModuleOne %localhome%
本文介绍了一个批处理脚本,用于自动化地从Subversion (SVN) 仓库下载多个项目及其模块到本地指定目录。该脚本适用于需要频繁同步SVN仓库的场景。
618

被折叠的 条评论
为什么被折叠?



