def validate_head_files(config):
 contract_head = _get_contract_head_file_path(config)
 expand_head = _get_expand_head_file_path(config)
 if ((not os.path.exists(contract_head)) or (not os.path.exists(expand_head))):
  alembic_util.warn(_('Repository does not contain HEAD files for contract and expand branches.'))
  return
 head_map = _get_heads_map(config)
 _check_head(CONTRACT_BRANCH, contract_head, head_map[CONTRACT_BRANCH])
 _check_head(EXPAND_BRANCH, expand_head, head_map[EXPAND_BRANCH])

def validate_head_files ( config ) : contract_head = _get_contract_head_file_path ( config ) expand_head = _get_expand_head_file_path ( config ) if ( ( not os . path . exists ( contract_head ) ) or ( not os . path . exists ( expand_head ) ) ) : alembic_util . warn ( _ ( 'Repository does not contain HEAD files for contract and expand branches.' ) ) return head_map = _get_heads_map ( config ) _check_head ( CONTRACT_BRANCH , contract_head , head_map [ CONTRACT_BRANCH ] ) _check_head ( EXPAND_BRANCH , expand_head , head_map [ EXPAND_BRANCH ] )
check that head files contain the latest head for the branch .