def _is_file_updated(filename, changes_dict):
    """ checks whether a file is listed among updated files (for pull or push changes) """
    for f in changes_dict['updated']:
        if f['path'] == filename:
            return True
    return False