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

Side by Side Diff: tools/push-to-trunk/auto_roll.py

Issue 700493002: Fix workdir feature for release scripts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « tools/push-to-trunk/auto_push.py ('k') | tools/push-to-trunk/common_includes.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 the V8 project authors. All rights reserved. 2 # Copyright 2014 the V8 project authors. All rights reserved.
3 # 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
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import argparse 6 import argparse
7 import json 7 import json
8 import os 8 import os
9 import sys 9 import sys
10 import urllib 10 import urllib
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 "--author", self._options.author, 92 "--author", self._options.author,
93 "--reviewer", self._options.reviewer, 93 "--reviewer", self._options.reviewer,
94 "--chromium", self._options.chromium, 94 "--chromium", self._options.chromium,
95 "--use-commit-queue", 95 "--use-commit-queue",
96 ] 96 ]
97 if self._options.sheriff: 97 if self._options.sheriff:
98 args.extend([ 98 args.extend([
99 "--sheriff", "--googlers-mapping", self._options.googlers_mapping]) 99 "--sheriff", "--googlers-mapping", self._options.googlers_mapping])
100 if self._options.dry_run: 100 if self._options.dry_run:
101 args.extend(["--dry-run"]) 101 args.extend(["--dry-run"])
102 if self._options.work_dir:
103 args.extend(["--work-dir", self._options.work_dir])
102 self._side_effect_handler.Call(chromium_roll.ChromiumRoll().Run, args) 104 self._side_effect_handler.Call(chromium_roll.ChromiumRoll().Run, args)
103 105
104 106
105 class AutoRoll(ScriptsBase): 107 class AutoRoll(ScriptsBase):
106 def _PrepareOptions(self, parser): 108 def _PrepareOptions(self, parser):
107 parser.add_argument("-c", "--chromium", required=True, 109 parser.add_argument("-c", "--chromium", required=True,
108 help=("The path to your Chromium src/ " 110 help=("The path to your Chromium src/ "
109 "directory to automate the V8 roll.")) 111 "directory to automate the V8 roll."))
110 parser.add_argument("--roll", help="Call Chromium roll script.", 112 parser.add_argument("--roll", help="Call Chromium roll script.",
111 default=False, action="store_true") 113 default=False, action="store_true")
(...skipping 18 matching lines...) Expand all
130 CheckActiveRoll, 132 CheckActiveRoll,
131 DetectLastPush, 133 DetectLastPush,
132 DetectLastRoll, 134 DetectLastRoll,
133 CheckClusterFuzz, 135 CheckClusterFuzz,
134 RollChromium, 136 RollChromium,
135 ] 137 ]
136 138
137 139
138 if __name__ == "__main__": # pragma: no cover 140 if __name__ == "__main__": # pragma: no cover
139 sys.exit(AutoRoll().Run()) 141 sys.exit(AutoRoll().Run())
OLDNEW
« no previous file with comments | « tools/push-to-trunk/auto_push.py ('k') | tools/push-to-trunk/common_includes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698