| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import optparse | 5 import optparse |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 import webbrowser | 10 import webbrowser |
| 11 | 11 |
| 12 import breakpad |
| 13 |
| 12 USAGE = """ | 14 USAGE = """ |
| 13 WARNING: Please use this tool in an empty directory | 15 WARNING: Please use this tool in an empty directory |
| 14 (or at least one that you don't mind clobbering.) | 16 (or at least one that you don't mind clobbering.) |
| 15 | 17 |
| 16 REQUIRES: SVN 1.5+ | 18 REQUIRES: SVN 1.5+ |
| 17 NOTE: NO NEED TO CHECKOUT ANYTHING IN ADVANCE OF USING THIS TOOL." | 19 NOTE: NO NEED TO CHECKOUT ANYTHING IN ADVANCE OF USING THIS TOOL." |
| 18 Valid parameters: | 20 Valid parameters: |
| 19 | 21 |
| 20 [Merge from trunk to branch] | 22 [Merge from trunk to branch] |
| 21 --merge <revision> --branch <branch_num> | 23 --merge <revision> --branch <branch_num> |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 | 484 |
| 483 if not options.merge and not options.revert: | 485 if not options.merge and not options.revert: |
| 484 option_parser.error("You need at least --merge or --revert") | 486 option_parser.error("You need at least --merge or --revert") |
| 485 sys.exit(1) | 487 sys.exit(1) |
| 486 | 488 |
| 487 if options.merge and not options.branch: | 489 if options.merge and not options.branch: |
| 488 option_parser.error("--merge requires a --branch") | 490 option_parser.error("--merge requires a --branch") |
| 489 sys.exit(1) | 491 sys.exit(1) |
| 490 | 492 |
| 491 sys.exit(main(options, args)) | 493 sys.exit(main(options, args)) |
| OLD | NEW |