parameters: (source_config, dest_config, bot_names, dry_run=False)
docstring: Sends a try job with the given config to the given try bots.
  
    Args:
      source_config: Path of the sample config to copy over.
      dest_config: Destination path to copy sample to, e.g. "./bisect.cfg".
      bot_names: List of try bot builder names.
docstring_summary: Sends a try job with the given config to the given try bots.
docstring_tokens: Sends a try job with the given config to the given try bots .
function: def _StartTry(source_config, dest_config, bot_names, dry_run=False):
    """Sends a try job with the given config to the given try bots.
  
    Args:
      source_config: Path of the sample config to copy over.
      dest_config: Destination path to copy sample to, e.g. "./bisect.cfg".
      bot_names: List of try bot builder names.
    """
    assert os.path.exists(source_config)
    assert os.path.exists(dest_config)
    assert _LastCommitMessage() != AUTO_COMMIT_MESSAGE
  
    # Copy the sample config over and commit it.
    _Run(['cp', source_config, dest_config])
    _Run(['git', 'commit', '--all', '-m', AUTO_COMMIT_MESSAGE])
  
    try:
      # Start the try job.
      job_name = 'Automatically-started (%s)' % os.path.basename(source_config)
      try_command = ['git', 'try', '--svn_repo', SVN_URL, '--name', job_name]
      for bot_name in bot_names:
        try_command.extend(['--bot', bot_name])
      print _Run(try_command, dry_run=dry_run)
    finally:
      # Revert the immediately-previous commit which was made just above.
      assert _LastCommitMessage() == AUTO_COMMIT_MESSAGE
      _Run(['git', 'reset', '--hard', 'HEAD~1'])
function_tokens: def _StartTry ( source_config , dest_config , bot_names , dry_run = False ) : assert os . path . exists ( source_config ) assert os . path . exists ( dest_config ) assert _LastCommitMessage ( ) != AUTO_COMMIT_MESSAGE # Copy the sample config over and commit it. _Run ( [ 'cp' , source_config , dest_config ] ) _Run ( [ 'git' , 'commit' , '--all' , '-m' , AUTO_COMMIT_MESSAGE ] ) try : # Start the try job. job_name = 'Automatically-started (%s)' % os . path . basename ( source_config ) try_command = [ 'git' , 'try' , '--svn_repo' , SVN_URL , '--name' , job_name ] for bot_name in bot_names : try_command . extend ( [ '--bot' , bot_name ] ) print _Run ( try_command , dry_run = dry_run ) finally : # Revert the immediately-previous commit which was made just above. assert _LastCommitMessage ( ) == AUTO_COMMIT_MESSAGE _Run ( [ 'git' , 'reset' , '--hard' , 'HEAD~1' ] )