Bug 1856588: clarify --push-to-lando pushes stack plus one try commit r=zeid

The statement "pushed 3 commits" can be confusing because the user has
actually pushed 2 of their own commits, plus one try config commit. Clarify
this in the command output.

Differential Revision: https://phabricator.services.mozilla.com/D189944
This commit is contained in:
Connor Sheehan 2023-10-03 15:08:54 +00:00
parent 64bd69ff3e
commit 8c8624b6dd

View File

@ -90,7 +90,7 @@ def get_stack_info(vcs: SupportedVcsRepository) -> Tuple[str, List[str]]:
nodes = vcs.get_branch_nodes(**branch_nodes_kwargs)
if not nodes:
raise ValueError("Could not find any commit hashes for submission.")
print("Submitting stack of", len(nodes), "nodes.")
print("Submitting stack of", len(nodes) - 1, "nodes and the try commit.")
patches = vcs.get_commit_patches(nodes)
base64_patches = [