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__/roundtrip.cpython-313.pyc
�

p��g���`�SrSSKJr SSKJr "SS5r"SS5rS	rS
rSr	Sr
g
)aDRoundtripping support.

Bazaar stores more data than Git, which means that in order to preserve
a commit when it is pushed from Bazaar into Git we have to stash
that extra metadata somewhere.

There are two kinds of metadata relevant here:
 * per-file metadata (stored by revision+path)
  - usually stored per tree
 * per-revision metadata (stored by git commit id)

Bazaar revisions have the following information that is not
present in Git commits:
 * revision ids
 * revision properties
 * ghost parents

Tree content:
 * empty directories
 * path file ids
 * path last changed revisions [1]

 [1] path last changed revision information can usually
     be induced from the existing history, unless
     ghost revisions are involved.

This extra metadata is stored in so-called "supplements":
  * CommitSupplement
  * TreeSupplement
�)�BytesIO�)�osutilsc�,�\rSrSrSrSrSrSrSrSr	g)�CommitSupplement�5aSupplement for a Bazaar revision roundtripped into Git.

:ivar revision_id: Revision id, as string
:ivar properties: Revision properties, as dictionary
:ivar explicit_parent_ids: Parent ids (needed if there are ghosts)
:ivar verifiers: Verifier information
Nc� �0Ul0Ulg�N��
properties�	verifiers��selfs �6/usr/lib/python3/dist-packages/breezy/git/roundtrip.py�__init__�CommitSupplement.__init__Bs��������c�x�[UR=(d UR=(d UR5$r
)�bool�revision_idr�explicit_parent_idsrs r�__nonzero__�CommitSupplement.__nonzero__Fs'���D�$�$�S����S�4�;S�;S�T�Trr)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrrr�__static_attributes__�rrrr5s����K����Urrc��\rSrSrSrSrg)�TreeSupplement�Jz�Supplement for a Bazaar tree roundtripped into Git.

This provides file ids (if they are different from the mapping default)
and can provide text revisions.
r N)rrrrrrr rrr"r"Js��rr"c��[5n[U5nUR5GHnURSS5upEUS:XaUR	5UlM5US:Xa/[
UR	5RS55UlMjUS:XaUR	5URS'M�URS5(aoU[S5SnXaR;a#USSRS	5URU'M�URU==S	USSRS	5--
ss'GM[e U$)
z$Parse Bazaar roundtripping metadata.�:�srevision-ids
parent-ids� �testament3-sha1s	property-N�
)rr�	readlines�split�stripr�tuplerr
�
startswith�lenr�rstrip�
ValueError)�text�ret�f�l�key�value�names       r�parse_roundtripping_metadatar9Rs��
�
�C���
�A�
�[�[�]���w�w�t�Q�'����.� �#�k�k�m�C�O�
�M�
!�&+�E�K�K�M�,?�,?��,E�&F�C�#�
�&�
&�05���
�C�M�M�,�-�
�^�^�L�
)�
)��s�<�(�*�+�D��>�>�)�',�Q�R�y�'7�'7��'>����t�$����t�$���a�b�	�0@�0@��0G�(G�G�$���� �Jrc	�V�/nUR(aURSUR-5 UR(a-URSSRUR5-5 [	UR
R
55HRnUR
URS5H-nURSU[R"U54-5 M/ MT SUR;a!URSURS-5 SRU5$)	z}Serialize the roundtripping metadata.

:param metadata: A `CommitSupplement` instance
:return: String with revision metadata
srevision-id: %s
sparent-ids: %s
r'r)sproperty-%s: %s
r(stestament3-sha1: %s
r)r�appendr�join�sortedr�keysr+r�	safe_utf8r
)�metadata�encoding�linesr6r5s     r�generate_roundtripping_metadatarCis���
�E����
���)�H�,@�,@�@�A��#�#�
���(�4�9�9�X�5Q�5Q�+R�R�S��h�)�)�.�.�0�1���$�$�S�)�/�/��6�A��L�L�-��g�6G�6G��6J�0K�K�L�7�2��X�/�/�/�
���-��0B�0B�CU�0V�V�W��8�8�E�?�rc�r�URSS5n[U5S:waUS4$US[US54$)z�Extract Bazaar metadata from a commit message.

:param message: Commit message to extract from
:return: Tuple with original commit message and metadata object
�	
--BZR--
r&rNr)r+r/r9)�messager+s  r�extract_bzr_metadatarG|sB��
�M�M�.�!�,�E�
�5�z�Q����}����8�1�%��(�;�;�;rc��U(dU$[X5nU(dU$[U[5(d[U5eUS-U-$)NrE)rC�
isinstance�bytes�	TypeError)rF�commit_supplementrA�rt_datas    r�inject_bzr_metadatarN�sE�����-�.?�J�G�����g�u�%�%��� � ��^�#�g�-�-rN)r�ior�rrr"r9rCrGrNr rr�<module>rQs<��"�>��U�U�*���.�&	<�.r

Youez - 2016 - github.com/yon3zu
LinuXploit