# HG changeset patch # User Jeff Hammel # Date 1354648574 28800 # Node ID 6f35d0d90c648264bd154f2df2168a05e0b885b1 # Parent 416f4562005c8fcd1a9e32efc5515a827a9b3e32 move more to configuration land diff -r 416f4562005c -r 6f35d0d90c64 mozillatry.py --- a/mozillatry.py Tue Dec 04 11:09:45 2012 -0800 +++ b/mozillatry.py Tue Dec 04 11:16:14 2012 -0800 @@ -63,7 +63,7 @@ message += ['-u', (','.join(unittests) if unittests else 'none')] message += ['-t', (','.join(talos) if talos else 'none')] if bug: - message += ['--post-to-bugzilla', str(bug)] + message += ['--post-to-bugzilla', 'Bug', str(bug)] return ' '.join(message) class MozillaTryConfiguration(configuration.Configuration): @@ -85,7 +85,7 @@ } def __init__(self): - configuration.Configuration.__init__(usage=self.usage, load='--config') + configuration.Configuration.__init__(self, usage=self.usage, load='--config') def check(self, parser, options, args): """check configuration""" @@ -121,7 +121,8 @@ def main(args=sys.argv[1:]): # parse command line arguments - config = MozillaTryConfiguration() + parser = MozillaTryConfiguration() + options, args = parser.parse_args() # get mozilla-central repository directory try_directory = options.mozilla_central @@ -129,7 +130,11 @@ parser.error("mozilla-central directory does not exist: %s" % try_directory) # build try syntax - commit = try_syntax(**options.__dict__) + commit = try_syntax(opt=options.opt, + debug=options.debug, + unittests=options.unittests, + talos=options.talostests + ) print commit # push to try