-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbranch_all_vetmedstat.bat
More file actions
92 lines (75 loc) · 2.46 KB
/
branch_all_vetmedstat.bat
File metadata and controls
92 lines (75 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
cls
cd %~dp0
@echo off
cls
ECHO Branching all projects in the VetMedStat SVN Repository.
:inputSource
ECHO Which tag do you want to branch?
set source=
set /P source=Source tag: %=%
if "%source%"=="" goto inputTag
:inputTag
ECHO What is the name of the branch you wish to create?
set branchName=
set /P branchName=Branch Name: %=%
if "%branchName%"=="" goto areYouSure
:areYouSure
ECHO Are you sure you want to branch the %source% line of code with the branch %branchName% (y/n)?
set sure=
set /p sure=
if not '%sure%'=='' set choice=%choice:~0,1%
if '%sure%'=='y' (
GOTO branchIt
)
if '%sure%'=='n' (
GOTO nope
)
ECHO "%sure%" is not valid please try again
ECHO.
GOTO areYouSure
:nope
ECHO Guess not.
PAUSE
EXIT
:branchIt
setlocal EnableDelayedExpansion
set "baseURL=http://subversion.idexx.com.local/subversion/VetMedStat"
set "branchDest=branches/%branchName%"
set "tagSource=tags/%source%"
set "CommonLibraries=%baseURL%/CommonLibraries"
set "DicomConverter=%baseURL%/DicomConverter"
set "DicomServer=%baseURL%/DicomServer"
set "VetMedStat_rc=%baseURL%/VetMedStat_rc"
set "VMS1=%baseURL%/VMS1"
set "VMSAdmin=%baseURL%/VMSAdmin"
set "VMSAdminVB=%baseURL%/VMSAdminVB"
set "VMSClient=%baseURL%/VMSClient"
set "VMSDatabase=%baseURL%/VMSDatabase"
set "VMSIntegrations=%baseURL%/VMSIntegrations"
set "VMSReports=%baseURL%/VMSReports"
set "VMSViewer=%baseURL%/VMSViewer"
set "VMSWebServices3=%baseURL%/VMSWebServices3"
ECHO DicomConverter
svn copy -m -rHEAD %DicomConverter%/%tagSource% %DicomConverter%/%branchDest%
ECHO DicomServer
svn copy -m -rHEAD %DicomServer%/%tagSource%/DicomServer %DicomServer%/%branchDest%
pause
ECHO VetMedStat_rc
svn copy -m -rHEAD %VetMedStat_rc%/%tagSource%/VetMedStat_rc %VetMedStat_rc%/%branchDest%
ECHO VMS1
svn copy -m -rHEAD %VMS1%/%tagSource%/VMS1 %VMS1%/%branchDest%
ECHO VMSAdminVB
svn copy -m -rHEAD %VMSAdminVB%/%tagSource%/VMSAdminVB %VMSAdminVB%/%branchDest%
ECHO VMSClient
svn copy -m -rHEAD %VMSClient%/%tagSource%/VMSClient %VMSClient%/%branchDest%
ECHO VMSDatabase
svn copy -m -rHEAD %VMSDatabase%/%tagSource% %VMSDatabase%/%branchDest%
ECHO VMSIntegrations
svn copy -m -rHEAD %VMSIntegrations%/%tagSource%/VMSIntegrations %VMSIntegrations%/%branchDest%
ECHO VMSReports
svn copy -m -rHEAD %VMSReports%/%tagSource%/VMSReports %VMSReports%/%branchDest%
ECHO VMSViewer
svn copy -m -rHEAD %VMSViewer%/%tagSource% %VMSViewer%/%branchDest%
ECHO VMSWebServices3
svn copy -m -rHEAD %VMSWebServices3%/%tagSource%/VMSWebServices3 %VMSWebServices3%/%branchDest%
pause