Files
tubestation/tools/tryselect/selectors/empty.py
James Graham 761e0a3cb5 Bug 1401150 - Support try pushes on a closed tree with mach try, r=ahal
This adds the magic CLOSED TREE string to the commit message for both
try syntax and the fuzzy frontend.

MozReview-Commit-ID: 492UME3VcJN
2017-10-16 18:59:45 +01:00

15 lines
603 B
Python

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import, print_function, unicode_literals
from ..vcs import VCSHelper
def run_empty_try(message='{msg}', push=True, **kwargs):
vcs = VCSHelper.create()
msg = 'No try selector specified, use "Add New Jobs" to select tasks.'
return vcs.push_to_try('empty', message.format(msg=msg), [], push=push,
closed_tree=kwargs["closed_tree"])