| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The LUCI Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Harvest data on the Try Server. | 6 """Harvest data on the Try Server. |
| 7 | 7 |
| 8 Please use sparingly. Large values for horizon will trash the Try Server memory. | 8 Please use sparingly. Large values for horizon will trash the Try Server memory. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 import os | 11 import os |
| 12 import optparse | 12 import optparse |
| 13 import sys | 13 import sys |
| 14 | 14 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 except ImportError: | 92 except ImportError: |
| 93 parser.error('Pass a directory path to buildbot_json.py with -b') | 93 parser.error('Pass a directory path to buildbot_json.py with -b') |
| 94 | 94 |
| 95 b = buildbot_json.Buildbot(options.url) | 95 b = buildbot_json.Buildbot(options.url) |
| 96 parse(b, options.horizon) | 96 parse(b, options.horizon) |
| 97 return 0 | 97 return 0 |
| 98 | 98 |
| 99 | 99 |
| 100 if __name__ == '__main__': | 100 if __name__ == '__main__': |
| 101 sys.exit(main()) | 101 sys.exit(main()) |
| OLD | NEW |