Hacked By AnonymousFox
�
�܋fpL � �n � d dl mZmZ d dlmZ ddlmZ ddlZddlZddl m
Z
mZ ddlm
Z
e
rddlmZ dd lmZ d
dgZ ej d� � Ze� ej � � � � G d
� de� � Zej Zej Zej Zej Zej Zej Z G d� d
e� � ZdS )� )� Submodule�UpdateProgress)�find_first_remote_branch� )�InvalidGitRepositoryErrorN)�
TYPE_CHECKING�Union)�
Commit_ish)�Repo)�IterableList�
RootModule�RootUpdateProgresszgit.objects.submodule.rootc �z � e Zd ZdZd� eej ej dz � � D � � \ ZZZ Z
ej dz ZdZdS )r z;Utility class which adds more opcodes to the UpdateProgressc � � g | ]}d |z ��S )r � )�.0�xs �k/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/git/objects/submodule/root.py�
<listcomp>zRootUpdateProgress.<listcomp> s) � � 3� 3� 3���Q��3� 3� 3� � r N)�__name__�
__module__�__qualname__�__doc__�ranger �
_num_op_codes�REMOVE�
PATHCHANGE�BRANCHCHANGE� URLCHANGE� __slots__r r r r r sg � � � � � �E�E�3� 3���n�:�N�<X�[\�<\�]�]�3� 3� 3�/�F�J��i� #�0�1�4�M��I�I�Ir c � � � e Zd ZdZdZdZd� fd�Zdd �Z ddee df d
e
de
de
de
ded de
de
de
dd fd�Zdd�Z� xZ
S )r
z�A (virtual) Root of all submodules in the given repository. It can be used
to more easily traverse all submodules of the master repositoryr �__ROOT__�repor c �� �� t t | � � � || j | j d| j |j j dt j �
| j � � �� � d S )N� )�binsha�mode�path�name�
parent_commit�url�branch_path)�superr
�__init__�NULL_BIN_SHA�k_default_mode�k_root_name�head�commit�git�Head�to_full_path�k_head_default)�selfr% � __class__s �r r0 zRootModule.__init__6 sm �� �
�j�$���(�(���$��$���!��)�*����-�-�d�.A�B�B� )�
�
�
�
�
r �returnNc � � dS )zMay not do anythingNr �r: s r �_clear_cachezRootModule._clear_cacheC s � ��r TF�previous_commit� recursive�force_remove�init�to_latest_revision�progress)Nr �dry_run�force_reset�
keep_goingc
�8 �(� | j j rt d� � �|�t � � }d}
|rd}
| j } |j j }|�] |� |j � d� � j � � }|j |j k rt �n'# t $ r |}Y nw xY w|� |� � }| � ||�� � }
| � |� � }t |
� � }t |� � }||z
}t |� � }t |� � D ]�\ }}t }|dk r
|t z }|� ||||
d|j �d |j ��z � � |j j |_ |� d
d||�� � ||d
z
k r
|t, z }|� ||||
d|j z z � � ��||z }t |� � }t |� � D �]g\ }}|
|j }||j �(�(j |j k r�|� � � r�|� t t2 z |||
d�(j �d|j �d�(j ��z � � |s|� �(j dd
�� � |� t, t2 z |||
d�(j z z � � �(� � � �r�(j |j k �r.d}�(� � � }|j }t �(fd�|D � � � � dk �r�|� t t<