def get_repository_files(folder_path):
 contents = []
 for item in os.listdir(folder_path):
  if item.startswith('.hg'):
   continue
  contents.append(item)
 if contents:
  contents.sort()
 return contents

def get_repository_files ( folder_path ) : contents = [ ] for item in os . listdir ( folder_path ) : if item . startswith ( '.hg' ) : continue contents . append ( item ) if contents : contents . sort ( ) return contents
return the file hierarchy of a tool shed repository .