OLD | NEW |
| 1 #!/usr/bin/python |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 4 # found in the LICENSE file. |
4 | 5 |
5 import optparse | 6 import optparse |
6 import os | 7 import os |
7 import re | 8 import re |
8 import subprocess | 9 import subprocess |
9 import sys | 10 import sys |
10 import webbrowser | 11 import webbrowser |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 options, args = option_parser.parse_args() | 548 options, args = option_parser.parse_args() |
548 | 549 |
549 if not options.merge and not options.revert: | 550 if not options.merge and not options.revert: |
550 option_parser.error("You need at least --merge or --revert") | 551 option_parser.error("You need at least --merge or --revert") |
551 sys.exit(1) | 552 sys.exit(1) |
552 | 553 |
553 if options.merge and not options.branch: | 554 if options.merge and not options.branch: |
554 option_parser.error("--merge requires a --branch") | 555 option_parser.error("--merge requires a --branch") |
555 sys.exit(1) | 556 sys.exit(1) |
556 | 557 |
557 sys.exit(main(options, args)) | 558 sys.exit(main(options, args)) |
OLD | NEW |