tools/binary_size/diagnose_bloat.py
def _SyncAndBuild(archive, build, subrepo, no_gclient, extra_rev):
  """Sync, build and return non 0 if any commands failed."""
  # Simply do a checkout if subrepo is used.
  if _CurrentGitHash(subrepo) == archive.rev:
    if subrepo != _SRC_ROOT:
      logging.info('Skipping git checkout since already at desired rev')
    else:
      logging.info('Skipping gclient sync since already at desired rev')
  elif subrepo != _SRC_ROOT or no_gclient:
    _GitCmd(['checkout',  archive.rev], subrepo)
  else:
    # Move to a detached state since gclient sync doesn't work with local
    # commits on a branch.
    _GitCmd(['checkout', '--detach'], subrepo)
    logging.info('Syncing to %s', archive.rev)
    ret = _GclientSyncCmd(archive.rev, subrepo)
    if ret:
      return ret
  with _ApplyPatch(extra_rev, subrepo):
    return build.Run()
Sync, build and return non 0 if any commands failed.
Sync, build and return non 0 if any commands failed.
Sync build and return non 0 if any commands failed .
def _SyncAndBuild(archive, build, subrepo, no_gclient, extra_rev):
  if _CurrentGitHash(subrepo) == archive.rev:
    if subrepo != _SRC_ROOT:
      logging.info('Skipping git checkout since already at desired rev')
    else:
      logging.info('Skipping gclient sync since already at desired rev')
  elif subrepo != _SRC_ROOT or no_gclient:
    _GitCmd(['checkout',  archive.rev], subrepo)
  else:
    _GitCmd(['checkout', '--detach'], subrepo)
    logging.info('Syncing to %s', archive.rev)
    ret = _GclientSyncCmd(archive.rev, subrepo)
    if ret:
      return ret
  with _ApplyPatch(extra_rev, subrepo):
    return build.Run()
def _SyncAndBuild ( archive , build , subrepo , no_gclient , extra_rev ) : if _CurrentGitHash ( subrepo ) == archive . rev : if subrepo != _SRC_ROOT : logging . info ( 'Skipping git checkout since already at desired rev' ) else : logging . info ( 'Skipping gclient sync since already at desired rev' ) elif subrepo != _SRC_ROOT or no_gclient : _GitCmd ( [ 'checkout' , archive . rev ] , subrepo ) else : _GitCmd ( [ 'checkout' , '--detach' ] , subrepo ) logging . info ( 'Syncing to %s' , archive . rev ) ret = _GclientSyncCmd ( archive . rev , subrepo ) if ret : return ret with _ApplyPatch ( extra_rev , subrepo ) : return build . Run ( )
Sync, build and return non 0 if any commands failed.
Sync build and return non 0 if any commands failed .
"""Sync, build and return non 0 if any commands failed.""" # Simply do a checkout if subrepo is used. # Move to a detached state since gclient sync doesn't work with local # commits on a branch.
archive
build
subrepo
no_gclient
extra_rev