Created disable-auto-submit flag for git cl split
This CL adds a disable-auto-submit flag for git cl split.
Change-Id: Ibce0e06706390ff9429d59094fed2449096c631c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4659527
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Anne Redulla <aredulla@google.com>
diff --git a/split_cl.py b/split_cl.py
index 0ff1e72..377df69 100644
--- a/split_cl.py
+++ b/split_cl.py
@@ -168,7 +168,7 @@
def PrintClInfo(cl_index, num_cls, directory, file_paths, description,
- reviewers, topic):
+ reviewers, enable_auto_submit, topic):
"""Prints info about a CL.
Args:
@@ -179,6 +179,7 @@
file_paths: A list of files in this CL.
description: The CL description.
reviewers: A set of reviewers for this CL.
+ enable_auto_submit: If the CL should also have auto submit enabled.
topic: Topic to set for this CL.
"""
description_lines = FormatDescriptionOrComment(description,
@@ -188,6 +189,7 @@
print('CL {}/{}'.format(cl_index, num_cls))
print('Path: {}'.format(directory))
print('Reviewers: {}'.format(', '.join(reviewers)))
+ print('Auto-Submit: {}'.format(enable_auto_submit))
print('Topic: {}'.format(topic))
print('\n' + indented_description + '\n')
print('\n'.join(file_paths))
@@ -276,7 +278,7 @@
file_paths, exclude=[author, cl.owners_client.EVERYONE])
if dry_run:
PrintClInfo(cl_index, num_cls, directory, file_paths, description,
- reviewers, topic)
+ reviewers, enable_auto_submit, topic)
else:
UploadCl(refactor_branch, refactor_branch_upstream, directory, files,
description, comment, reviewers, changelist, cmd_upload,