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/convert/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�h�2���SSKJr SSKrSSKrSSKJr SSKJrJr SSK	J
r
JrJr SSK
Jr SrS	r"S
S\R"5rg)�)�annotationsN)�_)�error�util)�dateutil�procutil�
stringutil�)�commonc#�v# �[R"U5nU(dgUv� M$![a gf=f7f)z,Yield the dictionary objects generated by p4N)�marshal�load�EOFError)�f�ds  �2/usr/lib/python3/dist-packages/hgext/convert/p4.py�loaditerrs=���
�����Q��A����G�	��
�
��
�s �9�)�9�)�
6�9�6�9c�F�/SQnUHup#URX#5nM U$)a9Perforce escapes special characters @, #, *, or %
with %40, %23, %2A, or %25 respectively

>>> decodefilename(b'portable-net45%252Bnetcore45%252Bwp8%252BMonoAndroid')
'portable-net45%2Bnetcore45%2Bwp8%2BMonoAndroid'
>>> decodefilename(b'//Depot/Directory/%2525/%2523/%23%40.%2A')
'//Depot/Directory/%25/%23/#@.*'
))s%2A�*)s%23�#)s%40�@)s%25�%)�replace)�filename�replacements�k�vs    r�decodefilenamer's,���L�����#�#�A�)����O�c�J^�\rSrSrSU4SjjrSrSrSr\RS5r
\RS5r\RS5r\RS	5r
\RS
5r\RS5rSrS
rSrSSjrSrSrSrSrSrU=r$)�	p4_source�;c�H>�SSKJn [TU]
XX4S9 SU;a8UR	S5(d"[
R"[S5U-5e[
R"SSS	9 0Ul	URRS
SUR5Ul
[R"S5Ul[R"S
5Ul[R"S5UlU(a/['U5S:�a[(R*"[S55egg)Nr
)�convcmd)�revs�/�//s%%s does not look like a P4 repository�p4F)�abort�convertsp4.encodingsE([a-z]+)?(text|binary|symlink|apple|resource|unicode|utf\d+)(\+\w+)?$sA\$(Id|Header|Date|DateTime|Change|File|Revision|Author):[^$\n]*\$s\$(Id|Header):[^$\n]*\$s8p4 source does not support specifying multiple revisions)�r$�super�__init__�
startswithr�NoRepor�	checktool�revmap�ui�config�
orig_encoding�encoding�re�compile�re_type�re_keywords�re_keywords_old�lenr�Abort)�selfr2�repotype�pathr%r$�	__class__s      �rr-�p4_source.__init__<s�����
����t��7��4�<����� 6� 6��-�-��:�;�d�B��
�	����e�,������������(=�(=�
��
��z�z�
�
����:�:�
�
��� "�z�z�*E�F����C��I��M��+�+��*���
�"�4rc��Xlg)a_Sets the parsed revmap dictionary.

Revmap stores mappings from a source revision to a target revision.
It is set in convertcmd.convert and provided by the user as a file
on the commandline.

Revisions in the map are considered beeing present in the
repository and ignored during _parse(). This allows for incremental
imports if a revmap is provided.
N)r1)r=r1s  r�	setrevmap�p4_source.setrevmap_s	���rc���S[R"U5-n[R"USS9n0n[U5H"nUR	SS5nU(dMSXF'M$ U$)zRead changes affecting the pathsp4 -G changes -s submitted %s�rb��mode�changeNT)r�
shellquote�popenr�get)r=r?�cmd�stdout�	p4changesr�cs       r�_parse_view�p4_source._parse_viewls_��.��1D�1D�T�1J�J������%�0���	��&�!�A����i��&�A��q�#�	��"��rc	�L
�0n0n0n0n0n0n/n	UR[S55 SU;aYURURU55 UR	S5(aURS5(aUSSS0n
O�SS0n
O�S[R"U5-n[R"[R"US	S
95n0n
UH�n
U
R	S5(dMX�R5up�URURU55 URS5(a URS5(a
USSnUSSnUS
SnX�RS5S-SnX�U'M� [UR5[S9n[U
R5[ SS9nUR"R%SS5nUR[S55 SnUGHnU(a[U5[U5:aM%UR&(a'[U5[UR&S5:�aM]UUR(;aUnMqU(aU/nO/nUR+U5nUR-UU5nUR.R1S5n[!U5S:�aUSR3S5nOSnSUR4U4-nUR[6R8"US5S-5 /n0n/nSnSU-U;a�SU-U;a�USU-nSnUHTn UR;5R	U R;55(dM7[=U
U U[!U 5S-5n O U(aLUR?UUSU-45 UUU'URASU-5S:XaUR?U5 UUU'US-
nSU-U;aSU-U;aM�UH�nUUnS[R"U5-n![R"U!S	S
9n"Sn#[CU"5H�nSn$SnS U-U;a`US U-U:XaDUSU-S:Xa8Sn%S!UU%4-U;a+US"UU%4-S#:XaUS!UU%4-n$OU%S-
n%S!UU%4-U;aM+US-
nS U-U;aM`U$(dMyU$U;dM�UU$n# O U#(aU#UU'M�URE[S$5UU4-5 M� UUU'UUU'UUU'UnGM U(a[!U5S:�aU/n	UUUU	US%.$)&z4Prepare list of P4 filenames and revisions to importsreading p4 views
r&r's/...N���rsp4 -G client -o %srFrGsViews...�r
)�keyT)rV�reverser*sp4.startrevscollecting p4 changelists
rs
s **empty changelist description**s%s %s�P�
sdepotFile%dsrev%dsaction%dsmove/addsp4 -G filelog %sschange%ds	file%d,%dshow%d,%ds
moved froms*cannot find source for copied file: %s@%s
)�	changeset�files�copies�heads�	depotname)#�statusr�updaterQr.�endswithrrJr
rrK�split�find�sorted�keys�intr;r2r3r%r1�_fetch_revision�_construct_commit�desc�
splitlines�rstrip�revr	�ellipsis�lowerr�appendrLr�warn)&r=r2r?rO�	changeset�	files_map�
copies_map�	localname�	depotname�heads�viewsrM�
clientspec�client�sview�cview�	vieworder�startrev�lastid�change�parentsrrP�descarr�	shortdesc�t�files�copies�copiedfiles�i�oldnamerr�flcmd�flstdout�copiedfilename�
copiedoldname�js&                                      r�_parse�p4_source._parsewsU���	��	��	��
��	��	���
�	�	�!�)�*�+��4�<����T�-�-�d�3�4����u�%�%�$�-�-��*@�*@��c�r��C�(������'�(�*=�*=�d�*C�C�C� ���h�n�n�S�u�&E�F�J��E�$���$�$�W�-�-�#-�#5�#;�#;�#=�L�E��$�$�T�%5�%5�e�%<�=��~�~�f�-�-�%�.�.��2H�2H� %�c�r�
�� %�c�r�
��!�!�"�I�E�!�*�*�T�"2�Q�"6�"8�9�E�#(�%�L�%��9�>�>�+��5�	��5�:�:�<�S�$�?�	��7�7�>�>�*�n�=��	�	�	�!�2�3�4����F��C��K�#�h�-�7���y�y�S��[�3�t�y�y��|�+<�<������$�����!�(�����$�$�V�,�A��&�&�q�'�2�A��f�f�'�'��-�G��7�|�a��#�A�J�-�-�g�6�	�?�	��A�E�E�9�-�-�A��I�I�j�)�)�!�R�0�5�8�9��E��F��K��A�!�A�%�!�+��A��!�0C��N�Q�.�/����"�A��}�}��1�1�!�'�'�)�<�<�#1�%��(�W�S��V�X�=N�2N�#O���#���L�L�(�A�h��l�O�!<�=�*1�I�h�'��u�u�[�1�_�-��<�#�*�*�8�4�)1�I�g�&��Q���"�A�%�!�+��A��!�0C� (��#�H�-��+�h�.A�.A�'�.J�J��#�>�>�%�e�<��!%��!�(�+�A�$(�M��A�&��?�q�0��k�A�o�.�&�8� !�+��/� 2�k� A� !�A�#/�1�a�&�#8�Q�">�#$�[�A�q�6�%9�#:�m�#K�45�l�a��V�6K�4L�M�$)� !�Q���	$0�1�a�&�#8�Q�">�
�Q���'��?�q�0�%�}��)�)C�)2�=�)A���',�*"�'5�F�8�$��G�G��H�I�#�V�,�-��?(�H!"�I�f�� %�I�f��!'�J�v���F�m �p�c�)�n�q�(��H�E�$��!��#�
�	
rc�N�URURUR5$�N)r�r2r?�r=s r�_parse_once�p4_source._parse_once	s���{�{�4�7�7�D�I�I�.�.rc� �URS$)Nr\�r�r�s rr��p4_source.copies
s�����	�*�*rc� �URS$)Nr[r�r�s rr��p4_source.files�������)�)rc� �URS$)NrZr�r�s rrq�p4_source.changeset�������-�-rc� �URS$)Nr]r�r�s rrv�p4_source.headsr�rc� �URS$)Nr^r�r�s rru�p4_source.depotnamer�rc��UR$r�)rvr�s r�getheads�p4_source.getheads!s���z�z�rc��S[R"SURUU4-5-nSn[R"USS9nSn/nSn[	U5GHn	U	Sn
U	RS5nU
S:XaU(d[
U	SU5n O�UeU
S	:Xa�U	RS
5nUS;a gURRU	S
5n
U
(a{SnU
RS5=(d SU
RS5=(d S-nSU;aSnU
RS5S:XaSnSU;a
URnO0SU;aURnOU
S:XdU
S:XaURU5 SnGM U(dOGMOUcgSRU5nU(aURSU5nUS:XaURS5(aUSSnXv4$)Nsp4 -G print %ss%s#%srFrGscodesdataserrorsgenericsstatsaction)spurgesdeletesmove/delete)NNstyperr
��xrUssymlink�lsko�kstextsbinarys$\1$rY���)rrJrurKrrL�IOErrorr8�match�groupr:r9ro�join�subra)r=�namerlrM�	lasterrorrNrH�contents�keywordsr�code�data�action�p4type�flagss               r�getfile�p4_source.getfile$s����(�"5�"5�����t�,�c�2�2�#
�
���	���^�^�C�e�4�F��D��H��H��f�%����z���u�u�W�~���8�#�%�$+�A�j�M�4�$@�	��'���W�_��U�U�9�-�F��!F�F�)�!�\�\�/�/��'�
�;�F��"��!'���a��!7�C�"�L�L��O�2�s�!�� �5�=�#'�D�!�<�<��?�j�8�#'�D� �E�>�'+�';�';�H�!�U�]�'+�'7�'7�H���W�_��	�(9��O�O�D�)� �	�I&�L��]�`�<���8�8�H�%����|�|�H�h�7�H��4�<�H�-�-�e�4�4����}�H��~�rc��U(a[R"[S55eURUURU[54$)Ns'convert from p4 does not support --full)rr<rr�r��set)r=rl�fulls   r�
getchanges�p4_source.getchangesfs:����+�+�a� J�K�L�L��z�z�#�����C� 0�#�%�7�7rc��URURSS55n[US5S4nUc/n[R"URUS5[
R"US5UUSUSUSUSS	.S
9$)zM
Constructs a common.commit object from an unmarshalled
`p4 describe` output
sdescrstimerNsusers%Y-%m-%d %H:%M:%S %1%2rI)r(sconvert_revision)�author�dater�ri�branchrl�extra)�recoderLrfr�commitr�datestr)r=�objr�rir�s     rrh�p4_source._construct_commitks���
�{�{�3�7�7�7�C�0�1���C��L�!�1�%���?��G��}�}��;�;�s�7�|�,��!�!�$�(A�B�����I���i�.�s�9�~�N�
�	
rc�b�SU-n[R"USS9n[R"U5$)zPReturn an output of `p4 describe` including author, commit date as
a dictionary.sp4 -G describe -s %srFrG)rrKr
r)r=rlrMrNs    rrg�p4_source._fetch_revisions-��&��+������%�0���|�|�F�#�#rc���XR;aURU$XR;a!URU5nURUSS9$[R
"[
S5U-5e)N)r�s1cannot find %s in the revmap or parsed changesets)rqr1rgrhrr<r)r=rlrs   r�	getcommit�p4_source.getcommit�sj���.�.� ��>�>�#�&�&�
�K�K�
��$�$�S�)�A��)�)�!�T�)�:�:��k�k�
�B�C�c�I�
�	
rc��0$r��r�s r�gettags�p4_source.gettags�s���	rc�b�[URUVs/sHo3SPM	 sn5$s snf)Nr)rdr�)r=rlr��xs    r�getchangedfiles�p4_source.getchangedfiles�s)���T�Z�Z��_�5�_���t�_�5�6�6��5s�,)r5r9r:r8r1r�)�__name__�
__module__�__qualname__�__firstlineno__r-rCrQr�r�
propertycacher�r�r�rqrvrur�r�r�rhrgr�r�r��__static_attributes__�
__classcell__)r@s@rr!r!;s����!�F�	�P
�d
���/��/�
���+��+�
���*��*�
���.��.�
���*��*�
���.��.��@�D8�

�($�
��7�7rr!)�
__future__rr
r6�mercurial.i18nr�	mercurialrr�mercurial.utilsrrr	r+rrr�converter_sourcer!r�rr�<module>r�sE��#��	������	
��(Y7��'�'�Y7r

Youez - 2016 - github.com/yon3zu
LinuXploit