403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.208
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/git/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/git/__pycache__/transportgit.cpython-313.pyc
�

p��gY���SrSSKrSSKrSSKrSSKJr SSKJr SSKJ	r	J
r
 SSKJrJ
r
JrJr SSKJr SSKJrJrJrJrJrJrJrJr SS	KJr SS
KJrJrJ r J!r!J"r"J#r#J$r$J%r%J&r&J'r'J(r(J)r)J*r* SSK+J,r,J-r- SS
K+J.r/ SSK0J1r1J2r2J3r3J4r4J5r5J6r6 SSK7J8r8 SSK9J:r: SSK.J;r;J<r< "SS5r=SSjr>"SS\&5r?Sr@"SS\$5rA"SS\5rBg)z=A Git repository implementation that uses a Bazaar transport.�N)�BytesIO)�NoIndexPresent)�
FileLocked�_GitFile)�	PACK_MODE�PACKDIR�PackBasedObjectStore�read_packs_file)�ShaFile)�Pack�PackData�PackIndexer�PackStreamCopier�extend_pack�	iter_sha1�load_pack_index_file�write_pack_index)�
SymrefLoop)
�BASE_DIRECTORIES�	COMMONDIR�
CONTROLDIR�INDEX_FILENAME�	OBJECTDIR�SYMREF�BaseRepo�InfoRefsContainer�
RefsContainer�check_ref_format�read_packed_refs�read_packed_refs_with_peeled�write_packed_refs�)�osutils�urlutils)�	transport)�AlreadyControlDirError�
LockBroken�LockContention�NotLocalUrl�	ReadError�TransportNotPossible)�LogicalLockResult)�warning)�
FileExists�
NoSuchFilec�8�\rSrSrSrSrSrSrSrSr	Sr
g	)
�_RemoteGitFile�Kc	���XlX lX0lX@lXPlSSKnUR
SS9UlSUl[RH#n[X[URU55 M% g)Nri)�max_sizeF)
r%�filename�mode�bufsize�mask�tempfile�SpooledTemporaryFile�_file�_closedr�
PROXY_METHODS�setattr�getattr)�selfr%r5r6r7r8r9�methods        �9/usr/lib/python3/dist-packages/breezy/git/transportgit.py�__init__�_RemoteGitFile.__init__Ls_��"�� �
��	����	���2�2�K�2�H��
�����,�,�F��D�'�$�*�*�f�"=�>�-�c�F�URR5 SUlg)NT)r;�closer<�r@s rB�abort�_RemoteGitFile.abortYs���
�
������rEc��U$�N�rHs rB�	__enter__�_RemoteGitFile.__enter__]s���rEc�L�UbUR5 gUR5 grL)rIrG)r@�exc_type�exc_val�exc_tbs    rB�__exit__�_RemoteGitFile.__exit__`s�����J�J�L��J�J�LrEc�l�U[R;a[URU5$[	U5e)z,Proxy property calls to the underlying file.)r�PROXY_PROPERTIESr?r;�AttributeError�r@�names  rB�__getattr__�_RemoteGitFile.__getattr__fs,���8�,�,�,��4�:�:�t�,�,��T�"�"rEc�4�UR(agURR5 URRS5 URRURUR5 URR5 SUlg)NrT)r<r;�flush�seekr%�put_filer5rGrHs rBrG�_RemoteGitFile.closels_���<�<���
�
�����
�
�����������
�
�t�z�z�:��
�
������rE)r<r;r7r5r8r6r%N)�__name__�
__module__�__qualname__�__firstlineno__rCrIrNrTr[rG�__static_attributes__rMrErBr1r1Ks ��?����#�rEr1c�
�SU;a[S5eSU;a[S5eSU;a[S5eSU;a[URU5X#U5$URU5$![a [	XX#U5s$f=f)N�az'append mode not supported for Git files�+z+read/write mode not supported for Git files�bz%text mode not supported for Git files�w)�OSErrorr�
local_abspathr)r1�get)r%r5r6r7r8s     rB�TransportGitFilerovs���
�d�{��?�@�@�
�d�{��C�D�D�
�$���=�>�>�
�d�{�	L��I�3�3�H�=�t�d�S�S��}�}�X�&�&���	L�!�)�t�d�K�K�	L�s�A(�(B�Bc��\rSrSrSrSSjrSrSrSrSr	S	r
S
rSrSr
S
rSrSrSrSSjrSrSrSrg)�TransportRefsContainer�z0Refs container that reads refs from a transport.Nc�B�XlUcUnX lSUlSUlgrL)r%�worktree_transport�_packed_refs�_peeled_refs)r@r%rts   rBrC�TransportRefsContainer.__init__�s)��"���%�!*��"4�� ��� ��rEc�b�SRURRUR5$�Nz{}({!r})��format�	__class__rbr%rHs rB�__repr__�TransportRefsContainer.__repr__��#��� � ����!8�!8�$�.�.�I�IrEc�~�URR[R"U55R	5 grL)r%�clone�	posixpath�dirname�
create_prefix�r@�paths  rB�_ensure_dir_exists�)TransportRefsContainer._ensure_dir_exists�s(�������Y�.�.�t�4�5�C�C�ErEc��[5n[U5S-nUR5H.nURU5(dMUR	XCS5 M0 U$)z�Refs present in this container under a base.

:param base: The base to return refs under.
:return: A set of valid refs in this container under the base; the base
    prefix is stripped from the ref names returned.
�N)�set�len�allkeys�
startswith�add)r@�base�keys�base_len�refnames     rB�subkeys�TransportRefsContainer.subkeys�sQ���u���t�9�q�=���|�|�~�G��!�!�$�'�'������+�,�&��rEc��[5nURRS5 URS5 [URRS5R55nUHSn[R"U5n[R"SU5n[U5(dMBURU5 MU URUR!55 U$![a N�f=f![[4a NCf=f)N�HEAD�HEAD�refssrefs)r�rt�	get_bytesr�r/�listr%r��iter_files_recursiver$�unquote_to_bytesr#�pathjoinrr+�update�get_packed_refs)r@r��
iter_filesr5�unquoted_filenamer�s      rBr��TransportRefsContainer.allkeys�s����u��	��#�#�-�-�f�5�
�H�H�W��	��d�n�n�2�2�6�:�O�O�Q�R�J�&��$,�$=�$=�h�$G�!�!�*�*�7�4E�F��#�G�,�,��H�H�W�%�	'�	
���D�(�(�*�+�����	��	��%�j�1�	��	�s)�C%�A2C5�/C5�%
C2�1C2�5D�Dc�h�URc�0Ul0UlURRS5n[[
U55R5nURS5(aASU;a;[U5H+up4nX0RU'U(dMXPRU'M- O3URS5 [U5Hup4X0RU'M UR5 UR$UR$![a 0s$f=f!UR5 f=f)z�Get contents of the packed-refs file.

:return: Dictionary mapping ref names to SHA1s

:note: Will return an empty dictionary when no packed-refs file is
    present.
�packed-refss# pack-refss peeledr)
rurvr%rnr/�next�iter�rstripr�r r_rrG)r@�f�
first_line�sharZ�peeleds      rBr��&TransportRefsContainer.get_packed_refs�s�����$�!#�D�� "�D��
��N�N�&�&�}�5��
�!�$�q�'�]�1�1�3�
��(�(��8�8�Z�:�=U�-I�!�-L�)��6�25�)�)�$�/�!�6�6<�-�-�d�3�.M�
�F�F�1�I�%5�a�%8�	��25�)�)�$�/�&9����	�� � � �t� � � ���
��	�
�����	�s$�D
�A"D�AD�
D�D�D1c��UR5 URbXR;agXR;aURU$X$)a4Return the cached peeled value of a ref, if available.

:param name: Name of the ref to peel
:return: The peeled value of the ref. If the ref is known not point to
    a tag, this will be the SHA the ref refers to. If the ref may point
    to a tag, but no cached information is available, None is returned.
N)r�rvrurYs  rB�
get_peeled�!TransportRefsContainer.get_peeled�sQ��	
�������$��4E�4E�(E���$�$�$��$�$�T�*�*��:�rEc��US:Xa
URnOURnUR[R"U55nU UR
[[55nU[:Xa/U[[U55RS5-sSSS5 $XCR
S[[5-
5-sSSS5 $![
a gf=f![a SSS5 gf=f!,(df   g=f)a\Read a reference file and return its contents.

If the reference file a symbolic reference, only read the first line of
the file. Otherwise, only read the first 40 bytes.

:param name: the refname to read, relative to refpath
:return: The contents of the ref file, or None if the file does not
    exist.
:raises IOError: if any other error occurs
r�N�
�()
rtr%rnr$�quote_from_bytesr/�readr�rr*r�r�r�)r@rZr%r��headers     rB�read_loose_ref�%TransportRefsContainer.read_loose_ref�s����7�?��/�/�I����I�	��
�
�h�7�7��=�>�A��
�����F��,�������T�!�W�
� 4� 4�W� =�=��Q����r�C��K�'7� 8�8��Q���	��	��
�
���Q�
���Q�sG�%C
�C5�
C�(/C5�!"C5�
C�C�
C2�'C5�1C2�2C5�5
Dc�j�URcgSUlUR5 XR;agURU	XR;a
URU	URR	S5n[X RUR5 SSS5 g!,(df   g=f)Nr�)rur�rvr%�open_write_streamr!)r@rZr�s   rB�_remove_packed_ref�)TransportRefsContainer._remove_packed_refs������$��!��������(�(�(�����d�#��$�$�$��!�!�$�'�
�^�^�
-�
-�m�
<���a�!2�!2�D�4E�4E�F�=�
<�
<�s�:!B$�$
B2c�0�URU5 URU5 US:wa2URnUR[R"U55 OUR
nUR
[R"U5[U-S-5 g)zpMake a ref point at another ref.

:param name: Name of the ref to set
:param other: Name of the ref to point at
r��
N)�_check_refnamer%r�r$r�rt�	put_bytesr)r@rZ�otherr%s    rB�set_symbolic_ref�'TransportRefsContainer.set_symbolic_refsx��	
���D�!����E�"��7�?����I��#�#�H�$=�$=�d�$C�D��/�/�I����H�5�5�d�;�V�e�^�e�=S�TrEc�l�URU5 URU5upEUSnUS:Xa
UR
nO1URnUR[R"U55 UR[R"U5US-5 g![[[4a UnN�f=f)a�Set a refname to new_ref only if it currently equals old_ref.

This method follows all symbolic references, and can be used to perform
an atomic compare-and-swap operation.

:param name: The refname to set.
:param old_ref: The old sha the refname must refer to, or None to set
    unconditionally.
:param new_ref: The new sha the refname will refer to.
:return: True if the set was successful, False otherwise.
���r�r�T)r��follow�KeyError�
IndexErrorrrtr%r�r$r�r�)r@rZ�old_ref�new_ref�	realnames�_�realnamer%s        rB�
set_if_equals�$TransportRefsContainer.set_if_equals,s���	
���D�!�	��;�;�t�,�L�I� ��}�H��w���/�/�I����I��#�#�H�$=�$=�h�$G�H����H�5�5�h�?��5��Q����*�j�1�	��H�	�s�B�B3�2B3c�j�URU5up4UbgUSnURU5 US:Xa
URnO1UR
nUR
[R"U55 UR[R"U5US-5 g![[4a UnN�f=f)a$Add a new reference only if it does not already exist.

This method follows symrefs, and only ensures that the last ref in the
chain does not exist.

:param name: The refname to set.
:param ref: The new sha the refname will refer to.
:return: True if the add was successful, False otherwise.
Fr�r�r�T)
r�r�r�r�rtr%r�r$r�r�)r@rZ�refr��contentsr�r%s       rB�
add_if_new�!TransportRefsContainer.add_if_newFs���	�"&�+�+�d�"3��I��#�� ��}�H�	
���H�%��w���/�/�I����I��#�#�H�$=�$=�h�$G�H����H�5�5�h�?��u��M����*�%�	��H�	�s�B�B�B2�1B2c���URU5 US:Xa
URnOURnUR[R
"U55 URU5 g![a Nf=f)ajRemove a refname only if it currently equals old_ref.

This method does not follow symbolic references. It can be used to
perform an atomic compare-and-delete operation.

:param name: The refname to delete.
:param old_ref: The old sha the refname must refer to, or None to
    delete unconditionally.
:return: True if the delete was successful, False otherwise.
r�T)r�rtr%�deleter$r�r/r�)r@rZr�r%s    rB�remove_if_equals�'TransportRefsContainer.remove_if_equals`sr��	
���D�!��7�?��/�/�I����I�	����X�6�6�t�<�=�	
����%����	��	�s�%A)�)
A6�5A6c�0�X$![a Us$f=frL)r�)r@rZ�defaults   rBrn�TransportRefsContainer.getxs#��	��:����	��N�	�s���c��US:Xa
URnOURnUS-nUR[R"U55 g![
a gf=f)Nr��.lock)rtr%r�r$r�r/)r@rZr%�locknames    rB�
unlock_ref�!TransportRefsContainer.unlock_ref~sV���7�?��/�/�I����I��(�?��	����X�6�6�x�@�A���	��	�s�%A�
A�Ac�X^^^�US:Xa
URmOURmUR[R"U55 [R"US-5mTR[R"U55 [
T[R"U5S5mUUU4Sjn[U5$![an[X5eSnAff=f![aF TRT5(a[U5eTRTS5 [UU4Sj5s$f=f)Nr�r��wbc�|>�TRT5 TR5 g![a [T5ef=frL)r�r/r'rI)�gfr�r%s���rB�unlock�/TransportRefsContainer.lock_ref.<locals>.unlock�s=���3�!�(�(��2�
�H�H�J��	&�3�(��2�2�3�s�%�;sLocked by brz-gitc�&>�TRT5$rL)r�)r�r%s��rB�<lambda>�1TransportRefsContainer.lock_ref.<locals>.<lambda>�s���Y�-=�-=�h�-GrE)
rtr%r�r$r�rmror,rr(r)�hasr�)r@rZr��er�r�r%s    @@@rB�lock_ref�TransportRefsContainer.lock_ref�s����7�?��/�/�I����I����� 9� 9�$� ?�@��,�,�T�H�_�=��	1��#�#�H�$=�$=�d�$C�D�
1�%�i��1J�1J�4�1P�RV�W��
�)��0�0���
.�$�T�-�-��
.���	I��}�}�X�&�&�$�T�*�*�����*>�?�$�%G�H�H�	I�s+�"%C�!B<�<
C�C�C�A
D)�(D))rurvr%rtrL)rbrcrdre�__doc__rCr}r�r�r�r�r�r�r�r�r�r�r�rnr�r�rfrMrErBrqrq�s[��:�!�J�F���(!�B�$9�@G�"
U��4�4�0�	�1rErqc��UR5nURS5(d[S5eU[S5SR	S5$)z�Read a ``.git`` file.

The first line of the file should start with "gitdir: "

:param f: File-like object to read from
:return: A path
sgitdir: z&Expected file to start with 'gitdir: 'Nr�)r�r��
ValueErrorr�r�)r��css  rB�read_gitfiler��sH��
����B�
�=�=��%�%��A�B�B�
�c�+�� �!�(�(��/�/rEc�^�\rSrSrSU4SjjrSrSrSr\S5r	Sr
SrS	rS
r
SrSrS
rSrSrSr\SSj5rSrU=r$)�
TransportRepoi�c��>�XlX lUR[5n[	U5nSSS5 URR[R"W55UlUR[5nUb�U [RRUR!5UR#5R%S5R'[(R*"555n[,R."U5UlSSS5 OURUlUR35n[4R7UR0R[85U5nUbH[;[=U55n	[?UR05RAS5n
X�RBS'O [?UR0UR5n	[FTU]�X�5 g!,(df   GN�=f![[4aI UR(aURUlGN�URRS5UlGN�f=f!,(df   GN;=f![Da N�f=f)N�.gitr�r�)%r%�barernrr�r�r$r��_controltransportr*r/�get_named_filer�osr��join�
controldirr�r��decode�sys�getfilesystemencoding�_mod_transport�get_transport_from_path�_commontransport�
get_config�TransportObjectStore�from_configrrrrqr��_refsr��superrC)r@r%r��	refs_textr�r��	commondir�config�object_store�refs_container�headr|s           �rBrC�TransportRepo.__init__�s����"���	�	����z�*�a�#�A���+�&*�^�^�%9�%9��)�)�$�/�&�D�"��'�'�	�2�	�� ���G�G�L�L��O�O�%��N�N�$��V�G�_��V�C�5�5�7�8�	�	�)7�(N�(N��)��%���%)�$:�$:�D�!����"��+�7�7��!�!�'�'�	�2�F�
��� �.�w�y�/A�B�N�
5�-�d�.C�.C�D�S�S����15�$�$�W�-�3��%�%�t�'=�'=��N�	����6�W+�*���:�&�	F��y�y�)-����&�)-���)=�)=�f�)E��&�		F�����,�
��
�sL�G9�G'�G9�B	I�$I'�'
G6�1G9�92I�. I�I�
I$�'
I4�3I4c�8�URRS5$�N�.)r�rmrHs rBr��TransportRepo.controldir�s���%�%�3�3�C�8�8rEc�8�URRS5$r)rrmrHs rBr	�TransportRepo.commondir�s���$�$�2�2�3�7�7rEc�8�URR5 g)z*Close any files opened by this repository.N)rrGrHs rBrG�TransportRepo.close�s�������!rEc�8�URRS5$r)r%rmrHs rBr��TransportRepo.path�s���~�~�+�+�C�0�0rEc�.�[RS:Xagg)N�win32FT)r��platformrHs rB�_determine_file_mode�"TransportRepo._determine_file_mode�s���<�<�7�"��rEc��[R"UR5$![a [R
S:gs$f=f)Nr)r#�supports_symlinksr�r)r�rrHs rB�_determine_symlinks�!TransportRepo._determine_symlinkss:��	+��,�,�T�Y�Y�7�7���	+��<�<�7�*�*�	+�s�"�A�Ac�x�URRURS55$![a gf=f)akGet a file from the control dir with a specific name.

Although the filename should be interpreted as a filename relative to
the control dir in a disk-baked Repo, the object returned need not be
pointing to a file in that location.

:param path: The path to the file, relative to the control dir.
:return: An open file object, or None if the file does not exist.
�/N)r�rn�lstripr/r�s  rBr��TransportRepo.get_named_files9��	��)�)�-�-�d�k�k�#�.>�?�?���	��	�s�),�
9�9c�:�URRX5 grL)r�r�)r@�relpathr�s   rB�_put_named_file�TransportRepo._put_named_files�����(�(��;rEc�@�URR[5$)z"Return the path to the index file.)r�rmrrHs rB�
index_path�TransportRepo.index_paths���%�%�3�3�N�C�CrEc�x�SSKJn UR5(d
[5eU"UR	55$)z#Open the index for this repository.r)�Index)�
dulwich.indexr.�	has_indexrr+)r@r.s  rB�
open_index�TransportRepo.open_indexs-��'��~�~��� �"�"��T�_�_�&�'�'rEc�$�UR(+$)zCheck if an index is present.)r�rHs rBr0�TransportRepo.has_index&s���9�9�}�rEc���SSKJn URRS5nUR	U5sSSS5 $!,(df   g=f![
a
 U"5s$f=f)Nr)�
ConfigFiler
)�dulwich.configr6r�rn�	from_filer/)r@r6r�s   rBr�TransportRepo.get_config,sP��-�	 ��'�'�+�+�H�5��!�+�+�A�.�6�5�5���	 ��<��	 �s+�A�>�	A�
A�A�A�A#�"A#c��SSKJn /nUR5nUbURU5 UnOSnUR	UR55 U"X$S9$)Nr)�
StackedConfig)�writable)r7r;r�append�extend�default_backends)r@r;�backends�pr<s     rB�get_config_stack�TransportRepo.get_config_stack5sQ��0����O�O����=��O�O�A���H��H����
�6�6�8�9��X�9�9rEc�b�SRURRUR5$)Nz
<{} for {!r}>rzrHs rBr}�TransportRepo.__repr__Bs#���%�%�d�n�n�&=�&=�t�~�~�N�NrEc�P�U(d$URS5 UR	S5nOUn[
H$nURSR
U55 M& UR[5 [RUR	[55 U"X5nURRSS5 URU5 U$![a [UR5ef=f![a M�f=f![a [UR5ef=f)Nr�r#r�srefs/heads/master)
�mkdirr.r&r�r�rr�rr�initr�r��_init_files)�clsr%r��control_transport�d�rets      rBrH�TransportRepo.initEs���
=�����'�!*���� 7�� )��!�A�
�!�'�'������4�"�
	9��#�#�I�.�	�!�!�"3�"9�"9�)�"D�E��)�"�����!�!�'�+?�@�������
��%�
=�,�Y�^�^�<�<�
=���
��
���	9�(����8�8�	9�s(�C� C4�D� C1�4
D�D� D%)rr�r�r%rL)F)rbrcrdrerCr�r	rG�propertyr�rr r�r(r+r1r0rrBr}�classmethodrHrf�
__classcell__�r|s@rBr�r��st���/7�b9�8�"��1��1��+�
�<�D�(�� �:�O����rEr�c�^�\rSrSrSrSU4Sjjr\S5rSrSr	\
S5rSrS	r
S
rSrSrS
rSrSrSr\S5rSSjrSSjrSrSrU=r$)ri_z+Git-style object store that exists on disk.c�>�[TU]5 X0lX lXlURR[5UlSUlg)zEOpen an object store.

:param transport: Transport to open data from
N)	rrC�pack_compression_level�loose_compression_levelr%r�r�pack_transport�_alternates)r@r%rVrUr|s    �rBrC�TransportObjectStore.__init__bs@���	����&<�#�'>�$�"��"�n�n�2�2�7�;�����rEc�|�[URSS5R55n[URSS5R55n[URSS5R55nU"XU5$![a SnNkf=f![a UnNSf=f![a UnN;f=f)N)scorescompressionr�slooseCompression�packCompression)�intrnr�r�)rJr�r
�default_compression_levelrVrUs      rBr� TransportObjectStore.from_configps���	+�(+��
�
�:�~�6�=�=�?�)�%�
	@�&)��
�
�:�':�;�B�B�D�'�#�
	?�%(��
�
�:�'8�9�@�@�B�&�"�
�4�2H�I�I���	+�(*�%�	+���	@�&?�#�	@���	?�%>�"�	?�s4�)B�)B�)B,�B�B�B)�(B)�,B;�:B;c�`�[U[5(dgURUR:H$)NF)�
isinstancerr%)r@r�s  rB�__eq__�TransportObjectStore.__eq__�s&���%�!5�6�6���~�~����0�0rEc�b�SRURRUR5$ryrzrHs rBr}�TransportObjectStore.__repr__�rrEc��URbUR$/UlUR5HCn[R"U5nURR	URU55 ME UR$rL)rX�_read_alternate_pathsrrr=r|)r@r��ts   rB�
alternates�TransportObjectStore.alternates�sp�����'��#�#�#�����.�.�0�D��6�6�t�<�A����#�#�D�N�N�1�$5�6�1����rEc�n�URRS5n/nU UR5R	5HEnUSS:XaM[
RRU5(aM4URU5 MG UsSSS5 $![a /s$f=f!,(df   g=f)Nzinfo/alternatesr�#)	r%rnr/r��
splitlinesr�r��isabsr=)r@r�rM�ls    rBrf�*TransportObjectStore._read_alternate_paths�s���	����"�"�#4�5�A���
��V�V�X�(�(�*���Q�4�4�<���7�7�=�=��#�#���
�
�1�
�+���Q���	��I�	���Q�s�B�A)B&�B#�"B#�&
B4c��[UR55n/nUH�nUS-nX0R;dMURR	U5R
n[X@RRU5US9nUS-n[XpRRU55n[R"Xh5n	X9lX�RU'URU	5 M� [UR5U-
H,n
URRU
5R5 M. U$![a SnN�f=f)N�.pack)�size�.idx)r��_pack_names�_pack_cacherW�stat�st_sizer+r
rnrr�from_objects�	_basenamer=�poprG)r@�
pack_files�	new_packs�basename�	pack_namerr�pd�idxname�idx�pack�ns           rB�_update_pack_cache�'TransportObjectStore._update_pack_cache�s&����)�)�+�,�
��	�"�H� �7�*�I��/�/�/� ��.�.�3�3�I�>�F�F�D��i�)<�)<�)@�)@��)K�RV�W��"�V�+��*�7�4G�4G�4K�4K�G�4T�U���(�(��1��!)��-1� � ��*�� � ��&�#��T�%�%�&��3�A���� � ��#�)�)�+�4����,� ��D� �s�%D2�2E�Ec���/nURRS5nUH�nURS5(dMURS5(dM3[R
R
U5SS-nXB;dM_UR[R
R
U5S5 M� U$![a� URRS5nU [U5Vs/sH%n[R
R
U5SPM' Os snfnnSSS5 O.!,(df   O =f![a [S5 U$f=fU$[a U$f=f)Nr�pack-rqrrsz
info/packszDNo info/packs on remote host;run 'git update-server-info' on remote.)rW�list_dirr��endswithr�r��splitextr=r+r%rnr
r/r-)r@r{�dir_contentsrZ�idx_namer�s      rBrt� TransportObjectStore._pack_names�sJ���
�	��.�.�7�7��<�L�$���?�?�7�+�+��
�
�g�0F�0F� "�w�w�/�/��5�a�8�6�A�H��/�"�)�)�"�'�'�*:�*:�4�*@��*C�D�
%�,���$�	�
��N�N�&�&�|�4���>M�a�>P�"�>P�d����(�(��.�q�1�>P��"�J�"��Q�Q��
�
��>����
�����	����	�sp�4B7�B7�(B7�5B7�7
E(�D;�E(�D*�-,D�D*�!	E(�*
D8	�4E(�;E�E(�E�E(�	E(�'E(c��URR[RR	UR
R55 URRURR5 UR[RR	UR5	g![a gf=frL)rWr�r�r�r}�index�datar5ruryr�)r@r�s  rB�_remove_pack�!TransportObjectStore._remove_pack�s������"�"�2�7�7�#3�#3�D�J�J�O�O�#D�E����"�"�4�9�9�#5�#5�6�	�� � ����!1�!1�$�.�.�!A�B���	��	�s�=4B2�2
B?�>B?c#�# �URRS5H^n[U5S:waMURRU5H+nX-R[R
"55v� M- M` g7f)Nrr")r%r�r��encoder�r�)r@r��rests   rB�_iter_loose_objects�(TransportObjectStore._iter_loose_objects�sa����N�N�+�+�C�0�D��4�y�A�~�����/�/��5���{�*�*�3�+D�+D�+F�G�G�6�1�s�A?Bc��USSUSS4$)Nr"rM)r@r�s  rB�_split_loose_object�(TransportObjectStore._split_loose_object�s���B�Q���Q�R��!�!rEc��[R"URU55nURR	[
R"U55 grL)r#�joinpathr�r%r�r$r�)r@r�r�s   rB�_remove_loose_object�)TransportObjectStore._remove_loose_object�s:������ 8� 8�� =�>�������h�7�7��=�>rEc�.�[R"URU55nURR	[
R"U55n[R"U5sSSS5 $!,(df   g=f![a gf=frL)
r#r�r�r%rnr$r�rr8r/)r@r�r�r�s    rB�_get_loose_object�&TransportObjectStore._get_loose_object�sm������ 8� 8�� =�>��	����#�#�H�$=�$=�d�$C�D���(�(��+�E�D�D���	��	�s/�/B�A6�,	B�6
B�B�B�
B�Bc��URUR5up#URR[R
"U55 [R
"[R"X#55nURRU5(agURS;aURURS9nOUR5nURRXE5 g![a N�f=f)zEAdd a single object to this object store.

:param obj: Object to add
N)r�N)�compression_level)
r��idr%rGr$r�r.r#r�r�rV�as_legacy_objectr�)r@�obj�dir�filer��
raw_strings      rB�
add_object�TransportObjectStore.add_object�s���
�.�.�s�v�v�6���	��N�N� � ��!:�!:�3�!?�@��(�(��)9�)9�#�)D�E���>�>���d�#�#���'�'�z�9��-�-�"&�">�">�.��J��-�-�/�J���� � ��2���	��	�s�/C/�/
C<�;C<c��URS5 UR[5 U"U5$![a N*f=f![a N$f=f)N�info)rGr.r)rJr%s  rBrH�TransportObjectStore.initsW��	��O�O�F�#�	��O�O�G�$��9�~���
�	��	���	��	�s�1�A�
>�>�
A�
Ac	�J�/n[U5H7upxUbU"SUSUS3RS55 URU5 M9 [UUR	5UR
URUS9up�UR5 UR5n[R"U5 URU
5 UR5 S[SU55RS5-nUR H;n
["R$"U
R&5U:XdM)UR)5 U
s $ US	-nUS
-n[*R,S:Xa3[/[05 UR2R5U5 SSS5 U(atUR)5 UR6R95 [R:"UUR2R=["R>"[@U555 O/URCS5 UR6REX�[FS
9 [IUR6US[FS9n[KUXi5 SSS5 [LRN"[QX�R6RSU55[UX�R6RSU555nUUlURW5 URYUU5 U$![a GNMf=f!,(df   GN=f!,(df   N�=f)aMove a specific file containing a pack into the pack directory.

Note: The file should be on the same file system as the
    packs directory.

Args:
  f: Open file object for the pack.
  path: Path to the pack file.
  indexer: A PackIndexer for indexing the pack.
Nzgenerating index: r#�
�ascii)�get_rawr��progressr�c3�*# �UH	oSv� M g7f)rNrM)�.0�entrys  rB�	<genexpr>�6TransportObjectStore._complete_pack.<locals>.<genexpr>?s���,K�7�%�1�X�7�s�rqrsrr)r6r�)r8)-�	enumerater�r=r�ext_refsr�rUr^�filenor��fsyncrXr>�sortrr��packsr#r}ryrGr�r�suppressr/r%�removerW�ensure_base�renamermr�rr_r`rrorrrxr
rnr�check_length_and_checksum�_add_cached_pack)r@r�r��num_objects�indexerr��entries�ir��pack_sha�
extra_entriesr��pack_base_namer��target_pack_name�target_pack_index�
index_file�
final_packs                  rB�_complete_pack�#TransportObjectStore._complete_packs�����!�'�*�H�A��#��-�a�S��+��b�A�H�H��Q�R��N�N�5�!�+�
#.�
������L�L�"�9�9��#
���	
���	�	��X�X�Z�F�
�H�H�V�����}�%�	���� �9�,K�7�,K�#K�#R�#R��$
�
���J�J�D�������/�>�A����	����
*�G�3��*�V�3���<�<�7�"��*�%����%�%�&6�7�&��
�G�G�I����+�+�-��I�I�����,�,��$�$�W�.>�?��
�
�F�F�1�I����(�(�)9�9�(�M�����!2�D�y�
�
��Z��;�
��&�&��%�':�':�'>�'>�?O�'P�Q� �!�#6�#6�#:�#:�;L�#M�
�
�
� .�
���,�,�.����n�j�9����q�	��	��.&�%��"
�
�s*�K1�.L�
L�1
K?�>K?�
L�
L"c�0�SSKnURRS5nURUSSS9nURn[X`RS9n[XXhS	9n	U	RUS
9 UR(a%[R"UR[5 URXg[U	5X�S
9$![
a UR
SS9nSnN�f=f![ a/ UR#5 U(a[R$"U5 ef=f)aAdd a new thin pack to this object store.

Thin packs are packs that contain deltas with parents that exist
outside the pack. They should never be placed in the object store
directly, and always indexed and completed as they are copied.

Args:
  read_all: Read function that blocks until the number of
    requested bytes are read.
  read_some: Read function that returns at least one byte, but may
    not return the number of bytes requested.
Returns: A Pack object pointing at the now-completed thin pack in the
    objects/pack directory.
rNr�	tmp_pack_F�r��prefixr��r���resolve_ext_ref)�
delta_iter)r�)r9r%rm�NamedTemporaryFilerZr)r:rr�r�verifyr��chmodrr�r��
BaseExceptionrGr�)
r@�read_all�	read_somer�r9r�r�r�r��copiers
          rB�
add_thin_pack�"TransportObjectStore.add_thin_packps���	�	��.�.�.�.�s�3�C�
�+�+��K�PU�+�V�A��6�6�D�	�!�!�\�\�B�G�%�h�1�Q�F��M�M�8�M�,��v�v��������+��&�&�q��F��W�&�X�X���	��-�-�[�-�A�A��D�	���	�
�G�G�I���	�	�$���		�s�B;�A;C�;C�C�9Dc��^^^^�SSKnTRRS5nURUSSS9mTRmUUUU4SjnUU4S	jmTUT4$![
a UR
SS9mSmN2f=f)
z�Add a new pack to this object store.

Returns: Fileobject to write to, a commit function to
    call when the pack is finished and an abort
    function.
rNrr�Fr�r�c�$>�TR5S:�acTRS5 [TT5n[R"UTR
S9nTR
TT[U5U5sSSS5 $T"5 g!,(df   g=f)Nrr�)�tellr_r
r�
for_pack_datar�r�r�)rr�rIr�r�r@s  ����rB�commit�-TransportObjectStore.add_pack.<locals>.commit�su����v�v�x�!�|����q�	��d�A�&�"�)�7�7��D�L�L��G� �.�.�q�$��B���I�	'�&����'�&�s�<B�
Bc�b>�TR5 T(a[R"T5 ggrL)rGr�r�)r�r�s��rBrI�,TransportObjectStore.add_pack.<locals>.abort�s���
�G�G�I���	�	�$��rE)r9r%rmr�rZr)r:)r@r9r�r�rIr�r�s`   @@@rB�add_pack�TransportObjectStore.add_pack�s����	�	��.�.�.�.�s�3�C�
�+�+��K�PU�+�V�A��6�6�D�
	�
	�	 �
�&�%����1�	��-�-�[�-�A�A��D�	�s�A�A5�4A5)rXrVrUrWr%)r�r�rL)rbrcrdrer�rCrPrrar}rOrhrfr�rtr�r�r�r�r�r�rHr�r�r�rfrQrRs@rBrr_s����5�MO� ��J��J�*1�
J�� �� �
��,�8�H�"�?��3�.�	��	�S�j%�N# �# rEr)�rbr�i�)Cr�r�r�r��ior�dulwich.errorsr�dulwich.filerr�dulwich.object_storerrr	r
�dulwich.objectsr�dulwich.packrr
rrrrrr�dulwich.refsr�dulwich.reporrrrrrrrrrrr r!�r#r$r%r�errorsr&r'r(r)r*r+�lockr,�tracer-r.r/r1rorqr�r�rrMrErB�<module>r�s���"D�	��
��)�-���$�	�	�	�$����� !�*���%��.�(�(�V
'� b1�]�b1�N	0�a�H�a�H[ �/�[ rE

Youez - 2016 - github.com/yon3zu
LinuXploit