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/usr/lib/python3/dist-packages/hgext/git/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/usr/lib/python3/dist-packages/hgext/git/__pycache__/manifest.cpython-313.pyc
�

6�h�8��J�SSKJr SSKrSSKJrJrJrJrJr SSKJ	r	 SSK
Jr SSKJ
rJrJrJr SSKJr SS	KJr \R,(aSS
KJr \R0"5r"SS\R45r"S
S\R85r"SS\R<5rg)�)�annotationsN)�Any�
Collection�Iterable�Iterator�Set)�sha1nodeconstants)�MatcherT)�match�pathutil�pycompat�util)�
repository�)�gitutil)�
ByteStringc��\rSrSrSrSrS$SjrS%SjrS&SjrS'Sjr	S(Sjr
\
rS)S	jrS*S
jr
S+SjrS*SjrS,S
jrS-SjrS.SjrS/S0Sjjr\R*S5rS1SjrS2SjrSS4S3SjjrS4SjrS/S5SjjrS%SjrS6SjrS7SjrS7SjrS8Sjr S9Sjr!S:S jr"S*S!jr#S;S"jr$S#r%g)<�gittreemanifest�$z{Expose git trees (and optionally a builder's overlay) as a manifestdict.

Very similar to mercurial.manifest.treemanifest.
c�2�XlX lUc0nX0lg)aqInitializer.

Args:
  git_repo: The git_repo we're walking (required to look up child
      trees).
  root_tree: The root Git tree object for this manifest.
  pending_changes: A dict in which pending changes will be
      tracked. The enclosing memgittreemanifestctx will use this to
      construct any required Tree objects in Git during it's
      `write()` method.
N)�	_git_repo�_tree�_pending_changes)�self�git_repo�	root_tree�pending_changess    �4/usr/lib/python3/dist-packages/hgext/git/manifest.py�__init__�gittreemanifest.__init__*s��"���
��"� �O� /��c�n�[R"U5nSnXR;aURUnUc[eU$URnURS5nURnUSSH nXxnURURnM" XVSnUR[R:XaSn	OcUR[R:XaSn	OBUR[R:XaSn	O![S[UR5-5eURRU	4$)z�Given a path, load its node and flags, or raise KeyError if missing.

This takes into account any pending writes in the builder.
N�/���r!�x�lzunsupported mode %s)r
�fsdecoder�KeyErrorr�splitr�id�filemode�pygit2�GIT_FILEMODE_BLOB�GIT_FILEMODE_BLOB_EXECUTABLE�GIT_FILEMODE_LINK�
ValueError�oct�raw)
r�path�upath�ent�val�t�comps�te�comp�flagss
          r�_resolve_entry�gittreemanifest._resolve_entry=s��
�!�!�$�'�����(�(�(��'�'��-�C��{����J��J�J�����C� ��
�Z�Z���#�2�J�D���B����r�u�u�%�A���b�	�l���<�<�6�3�3�3��E�
�\�\�V�@�@�
@��E�
�\�\�V�5�5�
5��E��2�S����5F�F�G�G��v�v�z�z�5� � r!c�*�URU5S$�Nr�r<�rr3s  r�__getitem__�gittreemanifest.__getitem__Zs���"�"�4�(��+�+r!c�$�URU5$�Nr@rAs  r�find�gittreemanifest.find]s���"�"�4�(�(r!c�n�[[UR[R"5555$rE)�len�list�walk�matchmod�always�rs r�__len__�gittreemanifest.__len__`s"���4��	�	�(�/�/�"3�4�5�6�6r!c�N�[[U55 g![a gf=f�NTF)�next�iter�
StopIterationrNs r�__nonzero__�gittreemanifest.__nonzero__cs(��	���d������	��	�s��
$�$c�H�URU5 g![a gf=frR�r<r(rAs  r�__contains__�gittreemanifest.__contains__ls*��	�����%����	��	�s��
!�!c�J�UR[R"55$rE)rKrLrMrNs r�iterkeys�gittreemanifest.iterkeysss���y�y����*�+�+r!c�4�[UR55$rE)rJr]rNs r�keys�gittreemanifest.keysvs���D�M�M�O�$�$r!c�"�UR5$rE)r]rNs r�__iter__�gittreemanifest.__iter__ys���}�}��r!c��[erE��NotImplementedError)rr3�noder;s    r�set�gittreemanifest.set|���!�!r!c�B�X RU54URU'grE)r;r)rr3rhs   r�__setitem__�gittreemanifest.__setitem__s��&*�J�J�t�,<�&<����d�#r!c�"�SURU'grE)rrAs  r�__delitem__�gittreemanifest.__delitem__�s��&*����d�#r!Nc��Ub[[R"US5n[URU55nURU5Vs1sHoDU;dM
UiM sn$UVs1sHoDU;dM
UiM sn$s snfs snf)Nc��grE�)r3�msgs  r�<lambda>�,gittreemanifest.filesnotin.<locals>.<lambda>�s��tr!)rL�badmatchrirK)r�otherr�sm2�fs     r�
filesnotin�gittreemanifest.filesnotin�st�����%�%�e�-C�D�E��e�j�j��'�(�C�#�y�y��/�@�/�!�C�<�A�/�@�@��2�4�a�E�>��4�2�2��A��2s�		A9�A9�#	A>�0A>c�.�[R"U5$rE)r�dirsrNs r�_dirs�gittreemanifest._dirs�s���}�}�T�"�"r!c��UR$rE�r�rNs rr�gittreemanifest.dirs�s���z�z�r!c��XR;$rEr�)r�dirs  r�hasdir�gittreemanifest.hasdir�s���j�j� � r!c��g)NTrt��xs rrv�gittreemanifest.<lambda>�s��tr!Fc��^^^^^^	�0mUUUUUU	4Sjn/m	U"TRTRS5 T	(a%T	R5upVnU"XgU5 T	(aM%T$)adFinds changes between the current manifest and m2.

The result is returned as a dict with filename as key and
values of the form ((n1,fl1),(n2,fl2)), where n1/n2 is the
nodeid in the current/other manifest and fl1/fl2 is the flag
in the current/other manifest. Where the file does not exist,
the nodeid will be None and the flags will be the empty
string.
c�">�X:XagUc0nUc0nUGH.nU[R"UR5-nUR[R
:XaGXRnUR[R
:waSnTRUS-X545 M�TRU5upgXRnTRU5up�Ub5UR[R
:XaTRUS-SU45 T"U5(dGM	Xh:wdXy:waXg4X�44T
U'GMT
(dGM)ST
U'GM1 UH�nURU;aMU[R"UR5-nUR[R
:XaTRUS-SU45 MoT"U5(dM~TRU5up�SX�44T
U'M� g![a SnGNnf=f![a
 SnSup�GN8f=f)zEcompares two trees and appends new tree nodes to examine to
the stackN�/�Nr!)	r
�fsencode�name�typer,�GIT_OBJ_TREEr(�appendrF)�t1�t2�subdir�e1�realname�e2�n1�fl1�n2�fl2�cleanrry�resultr�stacks          ������r�_iterativediff�,gittreemanifest.diff.<locals>._iterativediff�s�����x���z����z�����!�H�$5�$5�b�g�g�$>�>���7�7�f�1�1�1�"����[���7�7�f�&9�&9�9�!%�B��L�L�(�T�/�2�!:�;�"�i�i��1�G�B�.����[��"'�*�*�X�"6���
�~�"�'�'�V�5H�5H�*H����h��o�t�R�%@�A� ��?�?� ��x�3�:�-/�I��y�+A��x�(���+/��x�(�?�B���7�7�b�=��!�H�$5�$5�b�g�g�$>�>���7�7�f�1�1�1��L�L�(�T�/�4��!<�=��8�_�_�#�j�j��2�G�B�(3�b�Y�'?�F�8�$���3$�"�!��"��$�.�!��"-���C�.�s$�.G'�4!G:�'G7�6G7�:H�
Hr!)r�pop)
rryrr�r�r�r�r�r�r�s
````    @@r�diff�gittreemanifest.diff�s\���$��8	@�8	@�t���t�z�z�5�;�;��4��"�Y�Y�[�N�F���2�6�*��e�
�
r!c�J�URU5up4X24URU'grE)r<r)rr3�flagrh�unused_flags     r�setflag�gittreemanifest.setflag�s'�� �/�/��5���&*�j����d�#r!c�P�URU5S$![a Us$f=fr?rY)rr3�defaults   r�get�gittreemanifest.get�s1��	��&�&�t�,�Q�/�/���	��N�	�s��%�%c�L�URU5S$![a gf=f)Nrr!rYrAs  rr;�gittreemanifest.flags�s/��	��&�&�t�,�Q�/�/���	��	�s��
#�#c�j�[URUR[UR55$rE)rrr�dictrrNs r�copy�gittreemanifest.copy�s)����N�N�D�J�J��T�-B�-B�(C�
�	
r!c#�.# �UHnXU4v� M
 g7frErt�rr{s  r�items�gittreemanifest.itemss����A��!�W�*���s�c�"�UR5$rE)r�rNs r�	iteritems�gittreemanifest.iteritemss���z�z�|�r!c#�L# �UHnU/URU5Q7v� M g7frEr@r�s  r�iterentries�gittreemanifest.iterentriess(����A��,�d�)�)�!�,�,�,��s�"$c��[erErfrNs r�text�gittreemanifest.texts��!�!r!c��[erErf)r�base�changess   r�	fastdelta�gittreemanifest.fastdeltas
��"�!r!c#�^# �UH�nU[R"UR5-nUR[R
:Xa6UR
URURX%S-5Shv�N MzU"U5(dM�[R"U5v� M� gN27f)Nr�)	r
r�r�r�r,r��_walkonetreerr*)r�treerr�r9r�s      rr��gittreemanifest._walkonetrees�����B��� 1� 1�"�'�'� :�:�H��w�w�&�-�-�-��,�,��N�N�2�5�5�)�5�T�/�����x����'�'��1�1���s�A6B-�8B+�9B-�B-c�P�[URURUS55nURR	5VVs1sHup4UbM
UiM nnnURVs1sHo1"U5(dMUiM nn[[
X&-U-
55$s snnfs snfr�)rir�rrr�rT�sorted)rr�baseline�p�v�deleted�pends       rrK�gittreemanifest.walk$s����t�(�(����U�C�@�A��!%�!6�!6�!<�!<�!>�L�!>���!�1�!>��L��0�0�=�0�a�E�!�H��0��=��F�H�O�w�6�7�8�8��M��=s�	B�B�(B#�<B#)rrr)�return�tuple[bytes, bytes])r3�bytesr�r��r3r�r�r�)r��int)r��bool)r3r�r�r�)r��Iterator[bytes])r�zlist[bytes])r3r�rhr�r;r�r��None)r3r�rhr�r�r�)r3r�r�r�rE)r�z
Set[bytes])r�z
pathutil.dirs)r�r�r�r�)ryrrrr�r�r�zQdict[bytes, tuple[tuple[bytes | None, bytes], tuple[bytes | None, bytes]] | None])r3r�r�r�r�r�)r3r�r�zbytes | None)r�r)r�zIterator[tuple[bytes, bytes]])r�z$Iterator[tuple[bytes, bytes, bytes]])r�r)r�rr�zIterable[tuple[bytes, bool]]r�ztuple[ByteString, ByteString])rr
r�r�)&�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr<rBrFrOrV�__bool__rZr]r`rcrirmrpr|r�
propertycacher�rr�r�r�r�r;r�r�r�r�r�r�r�rK�__static_attributes__rtr!rrr$s���
0�&!�:,�)�7���H��,�%��"�=�+�3�
���#��#��!�$��	U��U��U��	U�

�U�n1���
�
�
�-�
"�"��"�)E�"�	&�"�
	2�9r!rc��\rSrSrSrSrSSSjjrSrSSjrSSjr	SSS	jjr
SSS.SSjjjrSS
S.SSjjrSS.SSjjr
\S5rSrg
)�gittreemanifestctxi.c��XlX lgrE��_repor)r�repo�gittrees   rr�gittreemanifestctx.__init__/s���
��
r!c�D�[URURS5$rE)rr�rrNs r�read�gittreemanifestctx.read3s���t�z�z�4�:�:�t�<�<r!Fc�"�UR5$rE)r��r�shallows  r�readfast�gittreemanifestctx.readfast6s���y�y�{�r!c�B�[URUR5$rE��memgittreemanifestctxr�rrNs rr��gittreemanifestctx.copy9���%�T�Z�Z����<�<r!c�@�UR5RU5$rE)r�rFrAs  rrF�gittreemanifestctx.find>s���y�y�{����%�%r!c��[erErfrNs rrh�gittreemanifestctx.nodeArkr!c��[erErfr�s  r�	readdelta�gittreemanifestctx.readdeltaDrkr!N)r�c��[erErf)r�valid_basesr�s   r�read_any_fast_delta�&gittreemanifestctx.read_any_fast_deltaGs
��"�!r!T)r��exactc��[erErf)rr�rs   r�read_delta_parents�%gittreemanifestctx.read_delta_parentsOrkr!c��[erErfr�s  r�read_delta_new_entries�)gittreemanifestctx.read_delta_new_entriesRrkr!c�B�[R[R4$rE)r	�nullidrNs r�parents�gittreemanifestctx.parentsUs��!�'�'�):�)A�)A�A�Ar!r�)F)r�r�r�)r�r�rE)rzCollection[int] | Noner�r�)r�r�rr�)r�r�r�r�rr�r�r�rFrhr�rrr
�propertyrr�rtr!rr�r�.sw���=��=�
&�"�"�
/3�"��	"�+�"��	"�5:��"�9>�"��B��Br!r�c�0�\rSrSrSrSrSrSSjrSrg)	r�i[c�*�XlX l0UlgrE)r�rr)rr�r�s   rr�memgittreemanifestctx.__init__\s���
��
� "��r!c�X�[URURUR5$rE)rr�rrrNs rr��memgittreemanifestctx.readbs���t�z�z�4�:�:�t�7L�7L�M�Mr!c�B�[URUR5$rEr�rNs rr��memgittreemanifestctx.copyer�r!Nc��U(a![U[R5(de[R"[UR55nSUR0n	SURRUR50n
[USS9H�nUS:XaMURS5nSn
UH�nX�nU[R"U5RnURUnU
SU--
n
Ub#UX�'URRU5X�'Mh0X�'URR5X�'M� M� URR!5H�unnSU;aSnUnOUR#SS5unnSU-nUc*U
UR%[R"U55 MXUunn[&R([&R*[&R,S.UnU
UR/[R"U5[0R2"U5U5 M� [U
[4SS9HknUS:Xa OdU
UnUR#SS5unnU
UR/[R"U5UR75[&R85 Mm U
SR75R:$![a SnGN�f=f)	Nr!c��[U5U4$rE)rIr�s rrv�-memgittreemanifestctx.write.<locals>.<lambda>{s��S��V�Q�Kr!)�keyr�r)r!r%r&T)r�reverse)�
isinstancerL�
alwaysmatcherrrrJrrr��TreeBuilderr�r)r
r'r*r(r��rsplit�remover,r-r.r/�insertr�	togitnoderI�write�GIT_FILEMODE_TREEr2)r�transaction�link�p1�p2�added�removedr�touched_dirs�trees�builders�dr8�full�part�parent�parent_tree_id�newr{�info�dirname�basename�n�fl�mode�b�cb�dn�bns                             rr$�memgittreemanifestctx.writejs����J�u�h�.D�.D�E�E�E�E��}�}�T�$�*?�*?�%@�A������
��

����'�'��
�
�3�
����*?�@�A��C�x���G�G�D�M�E��D�������%+�H�,=�,=�d�,C�%D�%G�%G�N��*�*�^�4�C���t��#���?�"%�E�K�%)�Z�Z�%;�%;�C�%@�H�N�
#%�E�K�%)�Z�Z�%;�%;�%=�H�N�%�
A�2�,�,�2�2�4�G�A�t��1�}�����$%�H�H�T�1�$5�!�����.���|���!�(�(��):�):�8�)D�E����2��1�1� �=�=� �2�2���	��
��!�(�(��%�%�h�/��1B�1B�1�1E�t��!5�*��c�4�8�A��C�x���!��B��X�X�d�A�&�F�B���R�L����!�!�"�%�r�x�x�z�6�3K�3K�
�9���}�"�"�$�(�(�(��W ���C��s�:2K	�	K�K)rr�rrE)	r�r�r�r�rr�r�r$r�rtr!rr�r�[s��#�N�=�
G)r!r�) �
__future__r�typingrrrrr�mercurial.noder	�mercurial.interfaces.typesr
�	mercurialrrLrr
r�mercurial.interfacesr�r�
TYPE_CHECKINGr�
get_pygit2r,�
imanifestdictr�imanifestrevisionstoredr��imanifestrevisionwritabler�rtr!r�<module>rLs���"�
���-�/�����	����
�	�	�	��G9�j�.�.�G9�T*B��;�;�*B�ZV)�J�@�@�V)r!

Youez - 2016 - github.com/yon3zu
LinuXploit