| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """This module uprevs a given package's ebuild to the next revision.""" | 7 """This module uprevs a given package's ebuild to the next revision.""" |
| 8 | 8 |
| 9 | 9 |
| 10 import fileinput | 10 import fileinput |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 empty commit id's.""", | 29 empty commit id's.""", |
| 30 short_name='i') | 30 short_name='i') |
| 31 gflags.DEFINE_string('packages', '', | 31 gflags.DEFINE_string('packages', '', |
| 32 'Space separated list of packages to mark as stable.', | 32 'Space separated list of packages to mark as stable.', |
| 33 short_name='p') | 33 short_name='p') |
| 34 gflags.DEFINE_string('push_options', '', | 34 gflags.DEFINE_string('push_options', '', |
| 35 'Options to use with git-cl push using push command.') | 35 'Options to use with git-cl push using push command.') |
| 36 gflags.DEFINE_string('srcroot', '%s/trunk/src' % os.environ['HOME'], | 36 gflags.DEFINE_string('srcroot', '%s/trunk/src' % os.environ['HOME'], |
| 37 'Path to root src directory.', | 37 'Path to root src directory.', |
| 38 short_name='r') | 38 short_name='r') |
| 39 gflags.DEFINE_string('tracking_branch', 'origin', | 39 gflags.DEFINE_string('tracking_branch', 'cros/master', |
| 40 'Used with commit to specify branch to track against.', | 40 'Used with commit to specify branch to track against.', |
| 41 short_name='t') | 41 short_name='t') |
| 42 gflags.DEFINE_boolean('verbose', False, | 42 gflags.DEFINE_boolean('verbose', False, |
| 43 'Prints out verbose information about what is going on.', | 43 'Prints out verbose information about what is going on.', |
| 44 short_name='v') | 44 short_name='v') |
| 45 | 45 |
| 46 | 46 |
| 47 # Takes two strings, package_name and commit_id. | 47 # Takes two strings, package_name and commit_id. |
| 48 _GIT_COMMIT_MESSAGE = \ | 48 _GIT_COMMIT_MESSAGE = \ |
| 49 'Marking 9999 ebuild for %s with commit %s as stable.' | 49 'Marking 9999 ebuild for %s with commit %s as stable.' |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 'and reset the git repo yourself.' % | 372 'and reset the git repo yourself.' % |
| 373 (package_list[:index], overlay_directory)) | 373 (package_list[:index], overlay_directory)) |
| 374 raise e | 374 raise e |
| 375 elif command == 'push': | 375 elif command == 'push': |
| 376 _PushChange() | 376 _PushChange() |
| 377 | 377 |
| 378 | 378 |
| 379 if __name__ == '__main__': | 379 if __name__ == '__main__': |
| 380 main(sys.argv) | 380 main(sys.argv) |
| 381 | 381 |
| OLD | NEW |