@@ -39,6 +39,20 @@ REPOSITORIES = {
39
39
'swift-integration-tests' : 'apple/swift-integration-tests' ,
40
40
}
41
41
42
+ MASTER_BRANCHES = {
43
+ 'llvm' : 'stable' ,
44
+ 'clang' : 'stable' ,
45
+ 'swift' : 'master' ,
46
+ 'lldb' : 'master' ,
47
+ 'cmark' : 'master' ,
48
+ 'llbuild' : 'master' ,
49
+ 'swiftpm' : 'master' ,
50
+ 'swift-corelibs-xctest' : 'master' ,
51
+ 'swift-corelibs-foundation' : 'master' ,
52
+ 'swift-corelibs-libdispatch' : 'master' ,
53
+ 'swift-integration-tests' : 'master' ,
54
+ }
55
+
42
56
NEXT_BRANCHES = {
43
57
'llvm' : 'stable-next' ,
44
58
'clang' : 'stable-next' ,
@@ -110,7 +124,9 @@ def obtain_additional_swift_sources(
110
124
check_call (['git' , 'clone' , '--recursive' , remote ,
111
125
dir_name ])
112
126
if branch :
113
- if branch == "stable-next" or branch == "master-next" :
127
+ if branch == "master" or branch == "stable" :
128
+ repo_branch = MASTER_BRANCHES [dir_name ]
129
+ elif branch == "stable-next" or branch == "master-next" :
114
130
repo_branch = NEXT_BRANCHES [dir_name ]
115
131
elif branch == "swift-3.0-branch" or \
116
132
branch == "swift-3.0-preview-1-branch" :
@@ -169,7 +185,9 @@ By default, updates your checkouts of Swift, SourceKit, LLDB, and SwiftPM.""")
169
185
print ("--- Skipping '" + dir_name + "' ---" )
170
186
continue
171
187
if branch :
172
- if branch == "stable-next" or branch == "master-next" :
188
+ if branch == "master" or branch == "stable" :
189
+ repo_branch = MASTER_BRANCHES [dir_name ]
190
+ elif branch == "stable-next" or branch == "master-next" :
173
191
repo_branch = NEXT_BRANCHES [dir_name ]
174
192
elif branch == "swift-3.0-branch" or \
175
193
branch == "swift-3.0-preview-1-branch" :
0 commit comments