403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/py/_path/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/py/_path/__pycache__/svnurl.cpython-311.pyc
�

��a{9����dZddlZddlZddlZddlZddlZddlmZmZddlm	Z	ddlm
Zddlm
Z
mZdZGd�d	ej��ZGd
�d��Zd�ZGd
�d��ZdS)z�
module defining a subversion path object based on the external
command 'svn'. This modules aims to work with svn 1.3 and higher
but might also interact well with earlier versions.
�N)�path�process)�common)�svnwc)�BuildcostAccessCache�
AgingCacheFc���eZdZdZed���Zedd���Zd&d�Zd	�Z	d
�Z
d�Zd�Zd
�Z
d�Zd�Zd�Zd�Zd'd�Zd�Zd�Zd(d�Zd)d�Zd*d�Zd�Zd�Zd�Zd �Zd!�Zd"�Zd&d#�Zd+d%�ZdS),�SvnCommandPathzZ path implementation that offers access to (possibly remote) subversion
    repositories. �)�
maxentriesi�gN@)r�
maxsecondsNc��t�|��}t||��r|j}|j}|j}t
j|��|jd��}||_||_||_|S)N�/)	�object�__new__�
isinstance�rev�auth�strpath�	svncommon�
checkbadchars�rstrip)�clsrrr�selfs     �1/usr/lib/python3/dist-packages/py/_path/svnurl.pyrzSvnCommandPath.__new__sv���~�~�c�"�"���d�C� � �	 ��(�C��9�D��<�D����%�%�%��t�{�3������������	���c�R�|jdkr
d|jzSd|j�d|j�d�S)N���z
svnurl(%r)zsvnurl(z, �))rr�rs r�__repr__zSvnCommandPath.__repr__$s8���8�r�>�>��$�,�.�.��(,�|�|�|�T�X�X�X�>�>rc�z�|j�|j|g|�R�Sd|jgt|��z}|j|g|�R�S)z9 execute an svn command, append our own url and revision N�-r)r�	_svnwrite�list)r�cmd�argss   r�_svnwithrevzSvnCommandPath._svnwithrev*sU���8��!�4�>�#�-��-�-�-�-��$�(�#�d�4�j�j�0�D�!�4�>�#�-��-�-�-�-rc�4��d|zg}�fd�|D��}|�|��|�d����z��d�|��}trtd|z����|��}|S)z, execute an svn command, append our own url zsvn %sc�@��g|]}d��|��z��S)�"%s")�_escape)�.0�itemrs  �r�
<listcomp>z,SvnCommandPath._svnwrite.<locals>.<listcomp>5s*���=�=�=������d�+�+�+�=�=�=rr+� z
execing %s)�extend�append�_encodedurl�join�DEBUG�print�_svncmdexecauth)rr&r'�l�string�outs`     rr$zSvnCommandPath._svnwrite2s����
��^���=�=�=�=��=�=�=��	�������	����$�*�*�,�,�,�-�-�-����!�����	)��,��'�(�(�(��"�"�6�*�*���
rc��tj��|z}|j�|d|j���zz
}|�|��S)z  execute an svn command 'as is' Nr0)r�	fixlocaler�makecmdoptions�_cmdexec�rr&s  rr7zSvnCommandPath._svncmdexecauth?sL���!�#�#�c�)���9� ��3���1�1�3�3�3�3�C��}�}�S�!�!�!rc�V�	tj|��}n�#tjjj$rvt	j��d}|j�d��dks|j�d��dkrtj�	|����wxYw|S)N�zFile ExistsrzFile already exists)
r�cmdexec�py�Error�sys�exc_info�err�find�error�EEXIST)rr&r:�es    rr>zSvnCommandPath._cmdexecFs���	��/�#�&�&�C�C���z�!�'�	�	�	�����q�!�A���
�
�=�)�)�R�/�/��E�J�J�'<�=�=��C�C��h�o�o�d�+�+�+��	�����
s
��BB&c��tj��|z}|j�|d|j���zz
}|�|��S)z9 execute an svn command, return a pipe for reading stdin Nr0)rr<rr=�_popenr?s  r�
_svnpopenauthzSvnCommandPath._svnpopenauthQsL���!�#�#�c�)���9� ��3���1�1�3�3�3�3�C��{�{�3���rc�*�tj|��S�N)�os�popenr?s  rrMzSvnCommandPath._popenXs���x��}�}�rc�6�|�|j��SrP)r,rr s rr3zSvnCommandPath._encodedurl[s���|�|�D�L�)�)�)rc��|jr|j���pd}|j�t	|��|f��dSrP)rr=�
_lsnorevcache�delentry�str)rrrs   r�_norev_delentryzSvnCommandPath._norev_delentry^sI���y�7�T�Y�5�5�7�7�?�4����#�#�S��Y�Y��$5�6�6�6�6�6r�rc�B�|dvrtd|�d����|�d���sJ�|j�1|�d|�|j���d���S|�d	|j�d
|�|j���d���S)z, return an opened file with the given mode. )rY�rUzmode z not supportedrA)�fileNz	svn cat "�"zsvn cat -r � ")�
ValueError�checkrrNr,r)r�modes  r�openzSvnCommandPath.openbs����|�#�#��*����>�?�?�?��z�z�q�z�!�!�!�!�!��8���%�%�%�&*�l�l�4�<�&@�&@�&@�&@�'D�E�E�
E��%�%�%�&*�h�h�h����T�\�0J�0J�0J�0J�'L�M�M�
Mrc�(�|j�|j��}t|��dkr tj�|d���t|��dkr
|j|i|��S|�d���j|i|��S)zi return the directory path of the current path joined
            with any given path arguments.
        �zbase is not valid�)�basename)	r�split�sep�lenrCrI�EINVALr4�new)rr'�kwargsr8s    r�dirpathzSvnCommandPath.dirpathns���
�L���t�x�(�(���q�6�6�A�:�:��(�/�/�$�(;�<�<�<�
��V�V�q�[�[��4�9�d�-�f�-�-�-�-�4�8�8�R�8�(�(�-�t�>�v�>�>�>rc���|�dd��}|j|�}|�dd|��|�|�����|S)zz create & return the directory joined with args.
        pass a 'msg' keyword argument to set the commit message.
        �msgzmkdir by py lib invocation�mkdirz-m)�getr4r$rXrm)rr'rl�
commit_msg�
createpaths     rrpzSvnCommandPath.mkdir{sd���Z�Z��'C�D�D�
��T�Y��%�
����W�d�J�7�7�7����Z�/�/�1�1�2�2�2��r�copied by py lib invocationc
�@�t|dd��� tj�|d���|�d|�d|�|���d|�|���d���|�|�����dS)z. copy path to target with checkin message msg.rN�revisions are immutablez
svn copy -m "�" "r]��getattrrCrIrjr7r,rXrm�r�targetros   r�copyzSvnCommandPath.copy�s����6�5�$�'�'�3��(�/�/�&�*C�D�D�D�����C�C�C�!�\�\�$�/�/�/�/����f�1E�1E�1E�1E�G�	H�	H�	H����V�^�^�-�-�.�.�.�.�.r�renamed by py lib invocationc
�j�t|dd��� tj�|d���|�d|�d|�|���d|�|���d���|�|�����|�|��dS)z6 rename this path to target with checkin message msg. rNrvz
svn move -m "z" --force "rwr]rxrzs   r�renamezSvnCommandPath.rename�s����4���%�%�1��(�/�/�$�(A�B�B�B����� �S�S�$�,�,�t�"4�"4�"4�"4�d�l�l�6�6J�6J�6J�6J�L�	M�	M�	M����T�\�\�^�^�,�,�,����T�"�"�"�"�"rrA�removed by py lib invocationc��|j� tj�|d���|�d|�d|�|���d���|�|�����dS)zT remove a file or directory (or a directory tree if rec=1) with
checkin message msg.Nrvzsvn rm -m "rwr])rrCrIrjr7r,rXrm)r�recros   r�removezSvnCommandPath.remove�sw���8���(�/�/�$�(A�B�B�B�����S�S�S�$�,�,�t�:L�:L�:L�:L�M�N�N�N����T�\�\�^�^�,�,�,�,�,rc�>�tj�|��}d|�|���d�d|�|���d�g}|j�dt|j��g|z}|�dd�|������|S)z� export to a local path

            topath should not exist prior to calling this, returns a
            py.path.local instance
        r]Nr#zsvn export r0)rCr�localr,rrWr7r4)r�topathr's   r�exportzSvnCommandPath.export�s�������v�&�&����,�,�t�,�,�,�,�.�.��,�,�v�.�.�.�.�0�2���8���#�d�h�-�-�(�4�/�D������������@�A�A�A��
rc�n�t|dd��� tj�|d���|j|�}|�dd��}|�d���D]}|���rn!�tj�|d���||krX|�|�	��s@|rtj�	|��ptj�
|���|S|�|��}|�|j
d
��d}tjj���}	|�||�	��dd|�|��z�d
|�|�|�����d
|�|������d�}	|�|	��|�|��|���n#|���wxYw|S)z� ensure that an args-joined path exists (by default as
            a file). If you specify a keyword argument 'dir=True'
            then the path is forced to be a directory path.
        rNrv�dirrT)�reversezhas not any valid base!)r�rAzsvn import -m "z	ensure %srwr])ryrCrIrjr4rq�partsr`�ENOENT�ENOTDIR�EISDIR�reltorgrhrr��mkdtemp�ensurer,r3r7rXr�)
rr'rlr{r��x�tocreaterf�tempdirr&s
          rr�zSvnCommandPath.ensure�s
��
�4���%�%�1��(�/�/�$�(A�B�B�B����D�!���j�j���"�"�����d��+�+�	E�	E�A��w�w�y�y�
���
��(�/�/�&�*C�D�D�D���;�;��7�7�s�7�#�#�
H��1�b�h�.�.�q�1�1�G�R�X�_�_�Q�5G�5G�G��H��<�<��?�?���>�>�$�(�A�.�.�q�1���'�-�'�'�)�)��		��N�N�8��N�-�-�-�-��$�,�,�x�"8�"8�8�8�8��L�L����h�!7�!7�8�8�8�8��F�F�8�$�$�0�0�2�2�2�2�4�C�
� � ��%�%�%�� � ��#�#�#��N�N������G�N�N���������
s
�B.H�H2c�B�|�d|��}|dd�S)N�propgetr)r()r�name�ress   r�_propgetzSvnCommandPath._propget�s$�����y�$�/�/���3�B�3�x�rc��|�d��}|�d��}d�|dd�D��}tj||��S)N�proplist�
c�6�g|]}|�����S�)�strip)r-r�s  rr/z,SvnCommandPath._proplist.<locals>.<listcomp>�s ��.�.�.�q������.�.�.rrA)r(rgr�PropListDict)rr��liness   r�	_proplistzSvnCommandPath._proplist�sR�����z�*�*���	�	�$����.�.�E�!�"�"�I�.�.�.���%�d�E�2�2�2rc���|���}|���}|j}|D]\}}||kr|cS�tj�|���)z9 return an Info structure with svn-provided information. )rm�_listdir_nameinforfrCrIr�)r�parent�nameinfo_seq�bnr��infos      rr�zSvnCommandPath.info�se���������/�/�1�1��
�]��&�	�	�J�D�$��r�z�z�������h�o�o�d�#�#�#rc�����fd�}�jr�j���pd}�j�(�j��j�j|f|��S�j��j|f|��S)z8 return sequence of name-info directory entries of self c���	��dd��}�n�#tjj$�r�t	j��d}|j�d��dkr%tj	�
�|j���|j�d��dkr%tj	�
�|j���|j�d��dkr%tj	�
�|j���|j�d��dkr%tj	�
�|j���|j�d	��dkr%tj	�
�|j���|j����d
��dkr%tj	��|j���tj	�|j���wxYw|�
d��}g}|D]:}|r6t|��}|jdkr|�|j|f���;|���|S)
N�ls�-vrAznon-existent in that revisionrzE200009:zFile not foundznot part of a repositoryzUnable to openzmethod not allowedr��.)r(rrBrDrErFrGrHrCrIr��lower�EACCESrg�InfoSvnCommand�_namer2�sort)r�rKr�r��lsliner�rs      �r�builderz1SvnCommandPath._listdir_nameinfo.<locals>.builder�s���
,��&�&�t�T�2�2�����?�(�
,�
,�
,��L�N�N�1�%���5�:�:�=�>�>�"�D�D��(�/�/�$���6�6�6��U�Z�Z�
�+�+�r�1�1��(�/�/�$���6�6�6��U�Z�Z� 0�1�1�R�7�7��(�/�/�$���6�6�6��U�Z�Z� :�;�;�R�?�?��(�/�/�$���6�6�6��U�Z�Z� 0�1�1�2�5�5��(�/�/�$���6�6�6��U�[�[�]�]�'�'�(<�=�=�r�A�A��(�/�/�$���6�6�6��h�n�n�Q�U�+�+�+�
,�����I�I�d�O�O�E��L��
@�
@���@�)�&�1�1�D��z�S�(�(�$�+�+�T�Z��,>�?�?�?���������s
��G7HN)rr=r�_lsrevcache�
getorbuildrrU)rr�rs`  rr�z SvnCommandPath._listdir_nameinfo�s����	 �	 �	 �	 �	 �6�y�7�T�Y�5�5�7�7�?�4���8���#�.�.���d�h��/M�/6�8�8�
8��%�0�0�$�,��1E�18�:�:�
:rc����t�t��rtj��������}t|��dkr@|d\}}|�jkr*|jdkrtj	�
�����fd�|D��}�r�fd�|D��}��||��|S)zi list directory contents, possibly filter by the given fil func
            and possibly sorted.
        rArr\c�@��g|]\}}��|����Sr�)r4)r-r�r�rs   �rr/z*SvnCommandPath.listdir.<locals>.<listcomp>s'���B�B�B�\�d�D����4���B�B�Brc�*��g|]}�|���
|��Sr�r�)r-r��fils  �rr/z*SvnCommandPath.listdir.<locals>.<listcomp>s&���0�0�0�1���Q���0�Q�0�0�0r)rrWr�	FNMatcherr�rirf�kindrCrIr��	_sortlist)rr�r�r�r�r��pathss``     r�listdirzSvnCommandPath.listdirs������c�3���	(��"�3�'�'�C��-�-�/�/���|����!�!�%�a��J�D�$��t�}�$�$���f�)<�)<��h�&�&�t�,�,�,�B�B�B�B�\�B�B�B���	1�0�0�0�0��0�0�0�E����u�d�#�#�#��rFc	��|���sJ�|durdp|}|durdp|}|dkr	|dkrd}nd|�d|��}|rdpd}|�d|�d	|�d
|j�d���}dd
lm}|�|��}g}	t
d|jj��D]9}
|
j	|
j
kr'|	�tj
|
�����:|	S)z� return a list of LogEntry instances for this path.
rev_start is the starting revision (defaulting to the first one).
rev_end is the last revision (defaulting to HEAD).
if verbose is True, then the LogEntry instances also know which files changed.
N�HEADrArez-r �:r�zsvn log --xml r0r^r]r)�minidom)r`rNr�xml.domr��parse�filter�
firstChild�
childNodes�nodeType�ELEMENT_NODEr2r�LogEntry)r�	rev_start�rev_end�verbose�rev_opt�verbose_opt�xmlpiper��tree�result�logentrys           r�logzSvnCommandPath.logs(���z�z�|�|������%�0�&�=�I�	��T�/�,�f�7�������7�a�<�<��G�G��$-�I�I�w�w�7�G��&�$�,�"���%�%�%�'.�w�w����T�\�\�\�'K�L�L��#�#�#�#�#�#��}�}�W�%�%�����t�T�_�%?�@�@�	<�	<�H�� �H�$9�9�9��
�
�i�0��:�:�;�;�;���
r)NN)rY)rt)r})rAr�)NrAF) �__name__�
__module__�__qualname__�__doc__rr�rrUrr!r(r$r7r>rNrMr3rXrbrmrpr|rr�r�r�r�r�r�r�r�r�r�rrr
r
s���������'�&�#�6�6�6�K��J�$�4�@�@�@�M�����?�?�?�.�.�.����"�"�"�	�	�	� � � ����*�*�*�7�7�7�
M�
M�
M�
M�
?�
?�
?����/�/�/�/�#�#�#�#�-�-�-�-�������D���3�3�3�$�$�$�#:�#:�#:�J����&�����rr
c�:�eZdZejd��Zd�Zd�ZdS)r�zc^ *(?P<rev>\d+) +(?P<author>.+?) +(0? *(?P<size>\d+))? *(?P<date>\w+ +\d{2} +[\d:]+) +(?P<file>.*)$c���|j�|��}|���}|d|_|jddkr|jdd�|_d|_nd|_t|d��|_|d|_|drt|d��pd|_t|d	��|_
|j
d
z|_dS)Nr\rrr�r�author�sizer�datei@B)�	lspattern�match�	groupdictr�r��int�created_rev�last_authorr��parse_time_with_missing_year�mtime�time)r�liner��datas    r�__init__zInfoSvnCommand.__init__?s�����$�$�T�*�*����� � ���&�\��
��:�b�>�S� � ���C�R�C��D�J��D�I�I��D�I��t�E�{�+�+�����>�����L�6�S��f��%6�%6�;�!��	�1�$�v�,�?�?��
��J��(��	�	�	rc�"�|j|jkSrP)�__dict__)r�others  r�__eq__zInfoSvnCommand.__eq__Qs���}���.�.rN)r�r�r��re�compiler�r�r�r�rrr�r�9sL��������
�	<�=�=�I�)�)�)�$/�/�/�/�/rr�c
�|�ddl}tj��}|���}tj|�d��d��d}tj|�d��d��d}|�d��}	d|vrt
���tj|d��d}dx}}	nN#t$rAtj|d	��d
d�\}}	|d}|||||	ddddf	}
|
|kr|dz}YnwxYw|||||	ddddf	}
|�|
��S)z� analyze the time part from a single line of "svn ls -v"
    the svn output doesn't show the year makes the 'timestr'
    ambigous.
    rNz%brAz%d�r�z%Yz%H:%M��)�calendarr��gmtimerg�strptime�popr_�timegm)�timestrr��t_now�tparts�month�day�last�year�hour�minute�t_results           rr�r�YsJ��
�O�O�O��K�M�M�E�
�]�]�_�_�F��M�&�*�*�Q�-�-��.�.�q�1�E�
�-��
�
�1�
�
�t�
,�
,�Q�
/�C��:�:�a�=�=�D���$�;�;��,�,���}�T�4�(�(��+�����v�v�������}�T�7�3�3�A�a�C�8���f��Q�x���%��d�F�A�a��!�<���e����A�I�D���
�����e�S�$���!�A�a�8�H��?�?�8�$�$�$s�1C�AD�Dc��eZdZd�ZdS)�	PathEntryc�|�|jj�d��|_|�d���d��|_|jdkr]|�d���d��|_|jr+t|�d����|_dSdSdS)NzUTF-8�action�Az
copyfrom-pathzcopyfrom-rev)	r��	nodeValue�encoder�getAttributer�
copyfrom_pathr��copyfrom_rev)r�pparts  rr�zPathEntry.__init__us����'�1�8�8��A�A����(�(��2�2�9�9�'�B�B����;�#���!&�!3�!3�O�!D�!D�!K�!K�G�!T�!T�D���!�
L�$'��(:�(:�>�(J�(J�$K�$K��!�!�!���
L�
LrN)r�r�r�r�r�rrrrts(������L�L�L�L�Lrr)r�rQrEr�r�rCrr�py._pathrrr�py._path.cacheutilrrr5�SvnPathBaser
r�r�rr�rr�<module>rsM��������������������	�	�	�	���������������'�'�'�'�'�'�?�?�?�?�?�?�?�?���b�b�b�b�b�Y�*�b�b�b�R	/�/�/�/�/�/�/�/�@%�%�%�6L�L�L�L�L�L�L�L�L�Lr

Youez - 2016 - github.com/yon3zu
LinuXploit