Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Side by Side Diff: recipe_modules/bot_update/resources/apply_gerrit.py

Issue 2249983004: Add apply_gerrit_ref to bot_update api (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: disable=relative-import Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « recipe_modules/bot_update/example.expected/apply_gerrit_ref.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import optparse
7 import sys
8
9 import bot_update # pylint: disable=relative-import
10
11
12 if __name__ == '__main__':
13 parse = optparse.OptionParser()
14
15 parse.add_option('--gerrit_repo',
16 help='Gerrit repository to pull the ref from.')
17 parse.add_option('--gerrit_ref', help='Gerrit ref to apply.')
18 parse.add_option('--root', help='The location of the checkout.')
19 parse.add_option('--gerrit_no_reset', action='store_true',
20 help='Bypass calling reset after applying a gerrit ref.')
21 parse.add_option('--gerrit_rebase_patch_ref', action='store_true',
22 help='Rebase Gerrit patch ref after of checking it out.')
23
24 options, _ = parse.parse_args()
25
26 sys.exit(
27 bot_update.apply_gerrit_ref(
28 options.gerrit_repo,
29 options.gerrit_ref,
30 options.root,
31 not options.gerrit_no_reset,
32 options.gerrit_rebase_patch_ref)
33 )
OLDNEW
« no previous file with comments | « recipe_modules/bot_update/example.expected/apply_gerrit_ref.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698