author Gregory Szorc <gps@mozilla.com>
Fri, 04 Sep 2015 12:09:05 -0700
changeset 361471 5d2431f11d23a355483ede7cec8458a0112c6dd9
parent 360510 b6aded8e5fada0248b593d2e6de65ca3daf935cd
permissions -rwxr-xr-x
Bugsy: synchronize with upstream Using commit a099a9b86682117b54e73f96892bd4923296bce1. The big addition is API key support.

#!/usr/bin/env 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/.

import os
import sys

HERE = os.path.abspath(os.path.dirname(__file__))

def main(args):
    if 'VIRTUAL_ENV' not in os.environ:
        activate = os.path.join(HERE, 'venv', 'bin', 'activate_this.py')
        execfile(activate, dict(__file__=activate))
        sys.executable = os.path.join(HERE, 'venv', 'bin', 'python')

    from mach.main import Mach

    m = Mach(os.getcwd())

    m.define_category('hgmo', 'hg.mozilla.org',
        'Control and Interact with an hg.mozilla.org cluster', 50)
    import vcttesting.hgmo_mach_commands

    return m.run(args)

if __name__ == '__main__':