def get_absolute_path_to_file_in_repository(repo_files_dir, file_name):
 stripped_file_name = basic_util.strip_path(file_name)
 file_path = None
 for (root, dirs, files) in os.walk(repo_files_dir):
  if (root.find('.hg') < 0):
   for name in files:
    if (name == stripped_file_name):
     return os.path.abspath(os.path.join(root, name))
 return file_path

def get_absolute_path_to_file_in_repository ( repo_files_dir , file_name ) : stripped_file_name = basic_util . strip_path ( file_name ) file_path = None for ( root , dirs , files ) in os . walk ( repo_files_dir ) : if ( root . find ( '.hg' ) < 0 ) : for name in files : if ( name == stripped_file_name ) : return os . path . abspath ( os . path . join ( root , name ) ) return file_path
return the absolute path to a specified disk file contained in a repository .