Lines Matching full:revision

27 _SYZYGY_ARCHIVE_PATH = ('/builds/official/%(revision)s')
34 # This matches an integer (an SVN revision number) or a SHA1 value (a GIT hash).
92 r = state.get('revision', None)
94 _LOGGER.debug('State contains an invalid revision.')
110 def _BuildActualState(stored, revision, output_dir): argument
117 state = { 'revision': revision, 'contents': contents }
131 if stored['revision'] != actual['revision']:
132 _LOGGER.debug('Mismatched revision number.')
146 def _GetCurrentState(revision, output_dir): argument
155 return ({'revision': '0', 'contents': {}}, False)
156 actual = _BuildActualState(stored, revision, output_dir)
324 state = { 'revision': options.revision, 'contents': contents }
325 archive_path = _SYZYGY_ARCHIVE_PATH % { 'revision': options.revision }
397 option_parser.add_option('--revision', type='string',
398 help='The SVN revision or GIT hash associated with the required version.')
399 option_parser.add_option('--revision-file', type='string',
400 help='A text file containing an SVN revision or GIT hash.')
417 if not options.revision and not options.revision_file:
418 option_parser.error('Must specify one of --revision or --revision-file.')
419 if options.revision and options.revision_file:
420 option_parser.error('Must not specify both --revision and --revision-file.')
425 # If a revision file has been specified then read it.
427 options.revision = open(options.revision_file, 'rb').read().strip()
428 _LOGGER.debug('Parsed revision "%s" from file "%s".',
429 options.revision, options.revision_file)
431 # Ensure that the specified SVN revision or GIT hash is valid.
432 if not _REVISION_RE.match(options.revision):
433 option_parser.error('Must specify a valid SVN or GIT revision.')
493 state, is_consistent = _GetCurrentState(options.revision, options.output_dir)
504 _LOGGER.info('Installing revision %s Syzygy binaries.',
505 options.revision[0:12])