tools/perf/cli_tools/pinboard/pinboard.py
def GetLastCommitOfDate(date):
  """"Find the the lastest commit that landed on a given date."""
  # Make sure our local git repo has up to date info on origin/master.
  logging.info('Fetching latest origin/master data.')
  subprocess.check_output(
      ['git', 'fetch', 'origin', 'master'], cwd=TOOLS_PERF_DIR,
      stderr=subprocess.STDOUT)

  # Snap the date to the end of the day.
  cutoff_date = date.replace(hour=12).ceil('D')
  logging.info('Finding latest commit before %s.', cutoff_date)
  if not FindCommit(after_date=cutoff_date):
    # We expect there to be some commits after the 'cutoff_date', otherwise
    # there isn't yet a *last* commit before that date.
    raise ValueError("Given date appears to be in the future. There isn't yet "
                     'a last commit before %s.' % cutoff_date)
  return FindCommit(before_date=cutoff_date)
Find the the lastest commit that landed on a given date.
Find the the lastest commit that landed on a given date.
Find the the lastest commit that landed on a given date .
def GetLastCommitOfDate(date):
  logging.info('Fetching latest origin/master data.')
  subprocess.check_output(
      ['git', 'fetch', 'origin', 'master'], cwd=TOOLS_PERF_DIR,
      stderr=subprocess.STDOUT)
  cutoff_date = date.replace(hour=12).ceil('D')
  logging.info('Finding latest commit before %s.', cutoff_date)
  if not FindCommit(after_date=cutoff_date):
    raise ValueError("Given date appears to be in the future. There isn't yet "
                     'a last commit before %s.' % cutoff_date)
  return FindCommit(before_date=cutoff_date)
def GetLastCommitOfDate ( date ) : logging . info ( 'Fetching latest origin/master data.' ) subprocess . check_output ( [ 'git' , 'fetch' , 'origin' , 'master' ] , cwd = TOOLS_PERF_DIR , stderr = subprocess . STDOUT ) cutoff_date = date . replace ( hour = 12 ) . ceil ( 'D' ) logging . info ( 'Finding latest commit before %s.' , cutoff_date ) if not FindCommit ( after_date = cutoff_date ) : raise ValueError ( "Given date appears to be in the future. There isn't yet " 'a last commit before %s.' % cutoff_date ) return FindCommit ( before_date = cutoff_date )
Find the the lastest commit that landed on a given date.
Find the the lastest commit that landed on a given date .
""""Find the the lastest commit that landed on a given date.""" # Make sure our local git repo has up to date info on origin/master. # Snap the date to the end of the day. # We expect there to be some commits after the 'cutoff_date', otherwise # there isn't yet a *last* commit before that date.
date