build/apple/tweak_info_plist.py
def _DoSCMKeys(plist, add_keys):
  """Adds the SCM information, visible in about:version, to property list. If
  |add_keys| is True, it will insert the keys, otherwise it will remove them."""
  scm_revision = None
  if add_keys:
    # Pull in the Chrome revision number.
    VERSION_TOOL = os.path.join(TOP, 'build/util/version.py')
    LASTCHANGE_FILE = os.path.join(TOP, 'build/util/LASTCHANGE')
    (stdout, retval) = _GetOutput(
        [VERSION_TOOL, '-f', LASTCHANGE_FILE, '-t', '@LASTCHANGE@'])
    if retval:
      return False
    scm_revision = stdout.rstrip()

  # See if the operation failed.
  _RemoveKeys(plist, 'SCMRevision')
  if scm_revision != None:
    plist['SCMRevision'] = scm_revision
  elif add_keys:
    print('Could not determine SCM revision.  This may be OK.', file=sys.stderr)

  return True
Adds the SCM information, visible in about:version, to property list. If
  |add_keys| is True, it will insert the keys, otherwise it will remove them.
Adds the SCM information, visible in about:version, to property list. If
|add_keys| is True, it will insert the keys, otherwise it will remove them.
Adds the SCM information visible in about : version to property list . If |add_keys| is True it will insert the keys otherwise it will remove them .
def _DoSCMKeys(plist, add_keys):
  scm_revision = None
  if add_keys:
    VERSION_TOOL = os.path.join(TOP, 'build/util/version.py')
    LASTCHANGE_FILE = os.path.join(TOP, 'build/util/LASTCHANGE')
    (stdout, retval) = _GetOutput(
        [VERSION_TOOL, '-f', LASTCHANGE_FILE, '-t', '@LASTCHANGE@'])
    if retval:
      return False
    scm_revision = stdout.rstrip()
  _RemoveKeys(plist, 'SCMRevision')
  if scm_revision != None:
    plist['SCMRevision'] = scm_revision
  elif add_keys:
    print('Could not determine SCM revision.  This may be OK.', file=sys.stderr)
  return True
def _DoSCMKeys ( plist , add_keys ) : scm_revision = None if add_keys : VERSION_TOOL = os . path . join ( TOP , 'build/util/version.py' ) LASTCHANGE_FILE = os . path . join ( TOP , 'build/util/LASTCHANGE' ) ( stdout , retval ) = _GetOutput ( [ VERSION_TOOL , '-f' , LASTCHANGE_FILE , '-t' , '@LASTCHANGE@' ] ) if retval : return False scm_revision = stdout . rstrip ( ) _RemoveKeys ( plist , 'SCMRevision' ) if scm_revision != None : plist [ 'SCMRevision' ] = scm_revision elif add_keys : print ( 'Could not determine SCM revision.  This may be OK.' , file = sys . stderr ) return True
Adds the SCM information, visible in about:version, to property list.
Adds the SCM information visible in about : version to property list .
"""Adds the SCM information, visible in about:version, to property list. If
  |add_keys| is True, it will insert the keys, otherwise it will remove them.""" # Pull in the Chrome revision number. # See if the operation failed.
plist
add_keys