tools/android/modularization/owners/getowners.py
def _propagate_down_owner_variables(chromium_root: str,
                                    owners: owners_data.Owners) -> None:
  '''For a given Owners, make sure that parent OWNERS are propagated down.

  Search in parent directories for OWNERS in case they do not exist
  in the current representation.
  '''

  parent_owners = owners
  visited = set()
  while parent_owners:
    if parent_owners.owners_file in visited:
      return
    if not owners.owners and parent_owners.owners:
      owners.owners.extend(parent_owners.owners)
    if owners.owners:
      return
    visited.add(parent_owners.owners_file)

    if parent_owners.file_inherited:
      parent_dir = parent_owners.file_inherited
    else:
      parent_dir = os.path.dirname(os.path.dirname(parent_owners.owners_file))
    parent_owners_file = _find_owners_file(chromium_root, parent_dir)
    parent_owners = _build_owners_info(chromium_root, parent_owners_file)
For a given Owners, make sure that parent OWNERS are propagated down.

  Search in parent directories for OWNERS in case they do not exist
  in the current representation.
  
For a given Owners, make sure that parent OWNERS are propagated down.
Search in parent directories for OWNERS in case they do not exist
in the current representation.
For a given Owners make sure that parent OWNERS are propagated down . Search in parent directories for OWNERS in case they do not exist in the current representation .
def _propagate_down_owner_variables(chromium_root: str,
                                    owners: owners_data.Owners) -> None:
  parent_owners = owners
  visited = set()
  while parent_owners:
    if parent_owners.owners_file in visited:
      return
    if not owners.owners and parent_owners.owners:
      owners.owners.extend(parent_owners.owners)
    if owners.owners:
      return
    visited.add(parent_owners.owners_file)
    if parent_owners.file_inherited:
      parent_dir = parent_owners.file_inherited
    else:
      parent_dir = os.path.dirname(os.path.dirname(parent_owners.owners_file))
    parent_owners_file = _find_owners_file(chromium_root, parent_dir)
    parent_owners = _build_owners_info(chromium_root, parent_owners_file)
def _propagate_down_owner_variables ( chromium_root : str , owners : owners_data . Owners ) -> None : parent_owners = owners visited = set ( ) while parent_owners : if parent_owners . owners_file in visited : return if not owners . owners and parent_owners . owners : owners . owners . extend ( parent_owners . owners ) if owners . owners : return visited . add ( parent_owners . owners_file ) if parent_owners . file_inherited : parent_dir = parent_owners . file_inherited else : parent_dir = os . path . dirname ( os . path . dirname ( parent_owners . owners_file ) ) parent_owners_file = _find_owners_file ( chromium_root , parent_dir ) parent_owners = _build_owners_info ( chromium_root , parent_owners_file )
For a given Owners, make sure that parent OWNERS are propagated down.
For a given Owners make sure that parent OWNERS are propagated down .
'''For a given Owners, make sure that parent OWNERS are propagated down.

  Search in parent directories for OWNERS in case they do not exist
  in the current representation.
  '''
chromium_root
str
owners
owners_data.Owners