Skip to content

Commit 3907612

Browse files
committed
[update-checkout] Give the skip repository list a name (skip_repository_list) that makes it clear that it is many repositories. This does not change the script interface.
1 parent e3de850 commit 3907612

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

utils/update-checkout

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def update_single_repository(repo_path, branch):
5959
def update_all_repositories(args, config, scheme_name):
6060
repo_branch = scheme_name
6161
for repo_name in config['repos'].keys():
62-
if repo_name in args.skip_repository:
62+
if repo_name in args.skip_repository_list:
6363
print("--- Skipping '" + repo_name + "' ---")
6464
continue
6565
if scheme_name:
@@ -78,11 +78,11 @@ def update_all_repositories(args, config, scheme_name):
7878

7979

8080
def obtain_additional_swift_sources(
81-
config, with_ssh, scheme_name, skip_history, skip_repositories):
81+
config, with_ssh, scheme_name, skip_history, skip_repository_list):
8282
with shell.pushd(SWIFT_SOURCE_ROOT, dry_run=False,
8383
echo=False):
8484
for repo_name, repo_info in config['repos'].items():
85-
if repo_name in skip_repositories:
85+
if repo_name in skip_repository_list:
8686
print("--- Skipping '" + repo_name + "' ---")
8787
continue
8888

@@ -169,6 +169,7 @@ By default, updates your checkouts of Swift, SourceKit, LLDB, and SwiftPM.""")
169169
metavar="DIRECTORY",
170170
default=[],
171171
help="Skip the specified repository",
172+
dest='skip_repository_list',
172173
action="append")
173174
parser.add_argument(
174175
"--branch",
@@ -197,7 +198,8 @@ By default, updates your checkouts of Swift, SourceKit, LLDB, and SwiftPM.""")
197198

198199
if clone or clone_with_ssh:
199200
obtain_additional_swift_sources(
200-
config, clone_with_ssh, scheme, skip_history, args.skip_repository)
201+
config, clone_with_ssh, scheme, skip_history,
202+
args.skip_repository_list)
201203

202204
update_all_repositories(args, config, scheme)
203205

0 commit comments

Comments
 (0)