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

Side by Side Diff: scripts/tools/blink_roller/auto_roll.py

Issue 515893002: Fix ARB regexp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Add a comment to DEPS_CONTENT Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | scripts/tools/blink_roller/auto_roll_test.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 Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium 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 6
7 """Automates creation and management of DEPS roll CLs. 7 """Automates creation and management of DEPS roll CLs.
8 8
9 This script is designed to be run in a loop (eg. with auto_roll_wrapper.sh) or 9 This script is designed to be run in a loop (eg. with auto_roll_wrapper.sh) or
10 on a timer. It may take one of several actions, depending on the state of 10 on a timer. It may take one of several actions, depending on the state of
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 ROLL_DESCRIPTION_REGEXP = ROLL_DESCRIPTION_STR % { 141 ROLL_DESCRIPTION_REGEXP = ROLL_DESCRIPTION_STR % {
142 'project': '%(project)s', 142 'project': '%(project)s',
143 'from_revision': r'(?P<from_revision>[0-9a-fA-F]{2,40})', 143 'from_revision': r'(?P<from_revision>[0-9a-fA-F]{2,40})',
144 'to_revision': r'(?P<to_revision>[0-9a-fA-F]{2,40})' 144 'to_revision': r'(?P<to_revision>[0-9a-fA-F]{2,40})'
145 } 145 }
146 146
147 # FIXME: These are taken from gardeningserver.py and should be shared. 147 # FIXME: These are taken from gardeningserver.py and should be shared.
148 CHROMIUM_SVN_DEPS_URL = 'http://src.chromium.org/chrome/trunk/src/DEPS' 148 CHROMIUM_SVN_DEPS_URL = 'http://src.chromium.org/chrome/trunk/src/DEPS'
149 # 'webkit_revision': '149598', 149 # 'webkit_revision': '149598',
150 REVISION_REGEXP = ( 150 REVISION_REGEXP = (
151 r'^ [\'"]%s_revision[\'"]: [\'"](?P<revision>[0-9a-fA-F]{2,40})[\'"],$') 151 r'^ [\'"]%s_revision[\'"]: [\'"](?P<revision>[0-9a-fA-F]{2,40})[\'"],')
152 152
153 ROLL_BOT_INSTRUCTIONS = textwrap.dedent( 153 ROLL_BOT_INSTRUCTIONS = textwrap.dedent(
154 '''This roll was created by the Blink AutoRollBot. 154 '''This roll was created by the Blink AutoRollBot.
155 http://www.chromium.org/blink/blinkrollbot''') 155 http://www.chromium.org/blink/blinkrollbot''')
156 156
157 PLEASE_RESUME_NAG = textwrap.dedent(''' 157 PLEASE_RESUME_NAG = textwrap.dedent('''
158 Rollbot was stopped by the presence of 'STOP' in an earlier comment. 158 Rollbot was stopped by the presence of 'STOP' in an earlier comment.
159 The last update to this issue was over %(stop_nag_timeout)s hours ago. 159 The last update to this issue was over %(stop_nag_timeout)s hours ago.
160 Please close this issue as soon as possible to allow the bot to continue. 160 Please close this issue as soon as possible to allow the bot to continue.
161 161
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 _, args = parser.parse_args() 436 _, args = parser.parse_args()
437 if len(args) != 3: 437 if len(args) != 3:
438 parser.print_usage() 438 parser.print_usage()
439 return 1 439 return 1
440 440
441 AutoRoller(*args).main() 441 AutoRoller(*args).main()
442 442
443 443
444 if __name__ == '__main__': 444 if __name__ == '__main__':
445 sys.exit(main()) 445 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | scripts/tools/blink_roller/auto_roll_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698