@@ -53,6 +53,20 @@ NEXT_BRANCHES = {
53
53
'swift-integration-tests' : 'master' ,
54
54
}
55
55
56
+ SWIFT_3_0_PREVIEW_1_BRANCHES = {
57
+ 'llvm' : 'swift-3.0-branch' ,
58
+ 'clang' : 'swift-3.0-branch' ,
59
+ 'swift' : 'swift-3.0-preview-1-branch' ,
60
+ 'lldb' : 'swift-3.0-preview-1-branch' ,
61
+ 'cmark' : 'swift-3.0-preview-1-branch' ,
62
+ 'llbuild' : 'swift-3.0-preview-1-branch' ,
63
+ 'swiftpm' : 'swift-3.0-preview-1-branch' ,
64
+ 'swift-corelibs-xctest' : 'swift-3.0-preview-1-branch' ,
65
+ 'swift-corelibs-foundation' : 'swift-3.0-preview-1-branch' ,
66
+ 'swift-corelibs-libdispatch' : 'swift-3.0-preview-1-branch' ,
67
+ 'swift-integration-tests' : 'swift-3.0-preview-1-branch' ,
68
+ 'compiler-rt' : 'swift-3.0-branch' ,
69
+ }
56
70
57
71
def update_working_copy (repo_path , branch ):
58
72
if not os .path .isdir (repo_path ):
@@ -97,6 +111,9 @@ def obtain_additional_swift_sources(
97
111
if branch :
98
112
if branch == "stable-next" or branch == "master-next" :
99
113
repo_branch = NEXT_BRANCHES [dir_name ]
114
+ elif branch == "swift-3.0-branch" or \
115
+ branch == "swift-3.0-preview-1-branch" :
116
+ repo_branch = SWIFT_3_0_PREVIEW_1_BRANCHES [dir_name ]
100
117
else :
101
118
repo_branch = branch
102
119
src_path = SWIFT_SOURCE_ROOT + "/" + dir_name + "/" + \
@@ -153,6 +170,9 @@ By default, updates your checkouts of Swift, SourceKit, LLDB, and SwiftPM.""")
153
170
if branch :
154
171
if branch == "stable-next" or branch == "master-next" :
155
172
repo_branch = NEXT_BRANCHES [dir_name ]
173
+ elif branch == "swift-3.0-branch" or \
174
+ branch == "swift-3.0-preview-1-branch" :
175
+ repo_branch = SWIFT_3_0_PREVIEW_1_BRANCHES [dir_name ]
156
176
157
177
update_working_copy (os .path .join (SWIFT_SOURCE_ROOT , dir_name ),
158
178
repo_branch )
0 commit comments