@@ -456,7 +456,10 @@ def full_target_name(repository, target):
456
456
raise RuntimeError ('Cannot determine if %s is a branch or a tag' % target )
457
457
458
458
459
- def skip_list_for_platform (config ):
459
+ def skip_list_for_platform (config , all_repos ):
460
+ if all_repos :
461
+ return [] # Do not skip any platform-specific repositories
462
+
460
463
# If there is a platforms key only include the repo if the
461
464
# plaform is in the list
462
465
skip_list = []
@@ -504,6 +507,11 @@ def main():
504
507
help = "Skip the specified repository" ,
505
508
dest = 'skip_repository_list' ,
506
509
action = "append" )
510
+ parser .add_argument (
511
+ "--all-repositories" ,
512
+ help = """Includes repositories not required for current platform.
513
+ This will not override '--skip-repositories'""" ,
514
+ action = 'store_true' )
507
515
parser .add_argument (
508
516
"--scheme" ,
509
517
help = 'Use branches from the specified branch-scheme. A "branch-scheme"'
@@ -578,6 +586,7 @@ def main():
578
586
skip_tags = args .skip_tags
579
587
scheme = args .scheme
580
588
github_comment = args .github_comment
589
+ all_repos = args .all_repositories
581
590
582
591
with open (args .config ) as f :
583
592
config = json .load (f )
@@ -606,7 +615,7 @@ def main():
606
615
if scheme is None :
607
616
scheme = config ['default-branch-scheme' ]
608
617
609
- skip_repo_list = skip_list_for_platform (config )
618
+ skip_repo_list = skip_list_for_platform (config , all_repos )
610
619
skip_repo_list .extend (args .skip_repository_list )
611
620
clone_results = obtain_all_additional_swift_sources (args , config ,
612
621
clone_with_ssh ,
0 commit comments