Skip to content

Commit

Permalink
Add --push-to-vcs for ./mach try
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrittervg committed Oct 23, 2024
1 parent 2040bf8 commit f3fe5e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/taskcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,17 @@ def submit_to_try(self, library, platform_filter, recursed=0):
platform_filter_args = ["--tasks-regex", platform_filter]

if library.try_preset:
try_arguments = ["./mach", "try", "--update", "--preset", library.try_preset]
try_arguments = ["./mach", "try", "--update", "--preset", "--push-to-vcs", library.try_preset]
elif library.fuzzy_query or library.fuzzy_paths:
try_arguments = ["./mach", "try", "fuzzy", "--update"]
try_arguments = ["./mach", "try", "fuzzy", "--push-to-vcs", "--update"]
if library.fuzzy_query:
try_arguments += ["--query", library.fuzzy_query + " " + (platform_filter or "")]
else: # If you don't give a --query it goes into interactive mode
try_arguments += ["--query", " " + (platform_filter or "")]
if library.fuzzy_paths:
try_arguments += library.fuzzy_paths
else:
try_arguments = ["./mach", "try", "auto"] + platform_filter_args
try_arguments = ["./mach", "try", "auto", "--push-to-vcs"] + platform_filter_args

ret = self.run(try_arguments, clean_return=True)
output = ret.stdout.decode()
Expand Down

0 comments on commit f3fe5e6

Please sign in to comment.