Mercurial > bitten > bitten-test
diff bitten/master.py @ 348:ef795ebeac00
Updated change log for [milestone:0.5.3].
author | cmlenz |
---|---|
date | Tue, 18 Apr 2006 10:28:43 +0000 |
parents | 5c0625957185 |
children | 2d58319eea84 |
line wrap: on
line diff
--- a/bitten/master.py +++ b/bitten/master.py @@ -39,7 +39,8 @@ class Master(beep.Listener): """BEEP listener implementation for the build master.""" - def __init__(self, envs, ip, port, adjust_timestamps=False, + def __init__(self, envs, ip, port, build_all=False, + adjust_timestamps=False, check_interval=DEFAULT_CHECK_INTERVAL): beep.Listener.__init__(self, ip, port) self.profiles[OrchestrationProfileHandler.URI] = \ @@ -50,7 +51,7 @@ self.queues = [] for env in envs: - self.queues.append(BuildQueue(env)) + self.queues.append(BuildQueue(env, build_all=build_all)) self.schedule(self.check_interval, self._enqueue_builds) @@ -386,6 +387,9 @@ parser.add_option('-i', '--interval', dest='interval', metavar='SECONDS', default=DEFAULT_CHECK_INTERVAL, type='int', help='poll interval for changeset detection') + parser.add_option('--build-all', action='store_true', dest='buildall', + help='build older revisions even when a build for a ' + 'newer revision has already been performed') parser.add_option('--timewarp', action='store_true', dest='timewarp', help='adjust timestamps of builds to be near the ' 'timestamps of the corresponding changesets') @@ -456,7 +460,8 @@ log.error('None of the specified environments has support for Bitten') sys.exit(2) - master = Master(envs, host, port, adjust_timestamps=options.timewarp, + master = Master(envs, host, port, build_all=options.buildall, + adjust_timestamps=options.timewarp, check_interval=options.interval) try: master.run(timeout=5.0)