| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/python2.7 | |
| 2 | |
| 3 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 4 # Use of this source code is governed by a BSD-style license that can be | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 import json | |
| 8 import os | |
| 9 import sys | |
| 10 | |
| 11 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) | |
| 12 | |
| 13 from bisect_lib import chromium_revisions | |
| 14 | |
| 15 | |
| 16 def main(argv): | |
| 17 if argv[1] == 'query_revision_info': | |
| 18 print json.dumps(chromium_revisions.revision_info(argv[2])) | |
| 19 elif argv[1] == 'revision_range': | |
| 20 print json.dumps(chromium_revisions.revision_range(argv[2], argv[3])) | |
| 21 return 0 | |
| 22 | |
| 23 | |
| 24 if __name__ == '__main__': | |
| 25 sys.exit(main(sys.argv)) | |
| OLD | NEW |