tools/cygprofile/compare_orderfiles.py
def CheckOrderfileCommit(commit_hash, clank_path):
  """Asserts that a commit is an orderfile update from the bot.

  Args:
    commit_hash: (str) Git hash of the orderfile roll commit.
    clank_path: (str) Path to the clank repository.
  """
  output = subprocess.check_output(['git', 'show', r'--format=%s', commit_hash],
                                   cwd=clank_path)
  first_line = output.split('\n')[0]
  # Capitalization changed at some point. Not checking the bot name because it
  # changed too.
  assert first_line.upper().endswith(
      'Update Orderfile.'.upper()), ('Not an orderfile commit')
Asserts that a commit is an orderfile update from the bot.

  Args:
    commit_hash: (str) Git hash of the orderfile roll commit.
    clank_path: (str) Path to the clank repository.
  
Asserts that a commit is an orderfile update from the bot.
Asserts that a commit is an orderfile update from the bot .
def CheckOrderfileCommit(commit_hash, clank_path):
  output = subprocess.check_output(['git', 'show', r'--format=%s', commit_hash],
                                   cwd=clank_path)
  first_line = output.split('\n')[0]
  assert first_line.upper().endswith(
      'Update Orderfile.'.upper()), ('Not an orderfile commit')
def CheckOrderfileCommit ( commit_hash , clank_path ) : output = subprocess . check_output ( [ 'git' , 'show' , r'--format=%s' , commit_hash ] , cwd = clank_path ) first_line = output . split ( '\n' ) [ 0 ] assert first_line . upper ( ) . endswith ( 'Update Orderfile.' . upper ( ) ) , ( 'Not an orderfile commit' )
Asserts that a commit is an orderfile update from the bot.
Asserts that a commit is an orderfile update from the bot .
"""Asserts that a commit is an orderfile update from the bot.

  Args:
    commit_hash: (str) Git hash of the orderfile roll commit.
    clank_path: (str) Path to the clank repository.
  """ # Capitalization changed at some point. Not checking the bot name because it # changed too.
commit_hash
(str) Git hash of the orderfile roll commit.
( str ) Git hash of the orderfile roll commit .
clank_path
(str) Path to the clank repository.
( str ) Path to the clank repository .