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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�h����SrSSKJr SSKrSSKrSSKJr SSKJrJ	r	J
r
JrJrJ
r
 SSKJr 0r\R""\5rSr\R&"S5r"S	S
5rSrSS
SSSS.rSSjrSr\"SSS9S5rg)a'extend schemes with shortcuts to repository swarms

This extension allows you to specify shortcuts for parent URLs with a
lot of repositories to act like a scheme, for example::

  [schemes]
  py = http://code.python.org/hg/

After that you can use it like::

  hg clone py://trunk/

Additionally there is support for some more complex schemas, for
example used by Google Code::

  [schemes]
  gcode = http://{1}.googlecode.com/hg/

The syntax is taken from Mercurial templates, and you have unlimited
number of variables, starting with ``{1}`` and continuing with
``{2}``, ``{3}`` and so on. This variables will receive parts of URL
supplied, split by ``/``. Anything not specified as ``{part}`` will be
just appended to an URL.

For convenience, the extension adds these schemes by default::

  [schemes]
  py = http://hg.python.org/
  bb = https://bitbucket.org/
  bb+ssh = ssh://hg@bitbucket.org/
  gcode = https://{1}.googlecode.com/hg/
  kiln = https://{1}.kilnhg.com/Repo/

You can override a predefined scheme by defining a new scheme with the
same name.
�)�annotationsN)�_)�error�
extensions�hg�pycompat�	registrar�	templater)�urlutilsships-with-hg-cores{(\d+)\}c�6�\rSrSrSrSrSrS	SjrSrSr	g)
�ShortRepository�Hc���X lX0lXl[[	[
[RUR555Ulg![a
 SUlgf=f)Nr)
�schemer
�url�max�map�int�_partre�findall�parts�
ValueError)�selfrrr
s    �//usr/lib/python3/dist-packages/hgext/schemes.py�__init__�ShortRepository.__init__IsL����"����	��S��g�o�o�d�h�h�&?�@�A�D�J���	��D�J�	�s�;A�A$�#A$c� �SUR-$)Ns<ShortRepository: %s>)r)rs r�__repr__�ShortRepository.__repr__Rs��'�$�+�+�5�5�c���URUR5nURUS9n[RRURR5nUbUR"X/UQ70UD6$g)N)�new_raw_location)	�resolve�rawloc�copyr�peer_schemes�getrr�	make_peer)r�ui�path�args�kwargs�new_url�clss       rr(�ShortRepository.make_peerUsa���,�,�t�{�{�+���y�y�'�y�2���o�o�!�!�$�(�(�/�/�2���?��=�=��;�D�;�F�;�;�r Nc�\�URU5n[R"U5nUR=(d SnU[R
;a[R
UnO8U[R;a[RUnO[RnURXX4US9$)Nsfile)�intents�
createopts)	r#rrrrr&�repo_schemes�LocalFactory�instance)	rr)r�creater1r2�urr.s	         rr5�ShortRepository.instance]s����l�l�3����K�K�������$�W���R�_�_�$��/�/�&�)�C�
�r���
&��/�/�&�)�C��/�/�C��|�|��V���
�	
r c���URSS5SnURSUR
5n[
U5UR
:�aUSnUSSnOSn[U5VVs0sHupESUS--U_M nnnSRURRURU55U-$![a# [R"[	S5U-5ef=fs snnf)Ns://�sno '://' in scheme url '%s'�/���r s%d)�split�
IndexErrorr�Abortrr�len�	enumerate�joinr
�processr)rrr�tail�i�v�contexts       rr#�ShortRepository.resolveks���	G��)�)�F�A�&�q�)�C��	�	�$��
�
�+���u�:��
�
�"���9�D��#�2�J�E��D�2;�E�2B�C�2B�$�!�5�A��E�?�A�%�2B��C��x�x����.�.�t�x�x��A�B�T�I�I���	G��+�+�a� >�?�#�E�F�F�	G��Ds�B7�'C'�7-C$)rrr
r)NN)
�__name__�
__module__�__qualname__�__firstlineno__rrr(r5r#�__static_attributes__�r rr
r
Hs���6��
�
Jr r
c�p�U(a([HnURUS-5(dM g U"U5$)N�:F)�schemes�
startswith)�origr*rs   r�hasdriveletterrT{s1����F����v��}�-�-�����:�r shttp://hg.python.org/shttps://bitbucket.org/sssh://hg@bitbucket.org/shttps://{1}.googlecode.com/hg/shttps://{1}.kilnhg.com/Repo/)spysbbsbb+sshsgcodeskilnc�4�[R(a�[U5S:XasUR5(a][R
R
SU-5(a5[S5nXUR54-n[R"U5egggg)z6check if a scheme conflict with a Windows drive letterr:s%s:\s5custom scheme %s:// conflicts with drive letter %s:\
N)r�	iswindowsr@�isalpha�osr*�existsr�upperrr?)r�msgs  r�_check_drive_letterr\�s��	�����K�1���N�N����G�G�N�N�8�f�,�-�-��J�K�������'�'���k�k�#���	
.�
�
�	r c��[R[URS555 [R
"[R5n[R5H�up#[U5 [R"U5RnU[R;a[X2U5[RU'Mc[X2U5[RU'M� [ R""[S[$5 g)NsschemesrT)rQ�update�dict�configitemsr
�engine�parse�itemsr\rrrrr&r
r3r�wrapfunctionrT)r)�trr�
url_schemes     r�extsetuprg�s����N�N�4����z�2�3�4�������)�A��}�}�����F�#��[�[��%�,�,�
�����(�&5�c�1�&E�B�O�O�F�#�&5�c�1�&E�B�O�O�F�#�
'����G�%5�~�Fr sdebugexpandschemeT)�norepoc�L�[R"U5RnU[R;a[RUnO[R
R
U5nUb&[U[5(aURU5nURUS-5 g)z3given a repo path, provide the scheme-expanded pathN�
)rrrrr&r3r'�
isinstancer
r#�write)r)r�optsrr.s     r�expandschemern�su���[�[��
�
$�
$�F�
���� ��o�o�f�%���o�o�!�!�&�)��
��:�c�?�;�;��k�k�#����H�H�S�5�[�r )r�bytes�return�None)�__doc__�
__future__rrX�re�mercurial.i18nr�	mercurialrrrrr	r
�mercurial.utilsr�cmdtable�command�
testedwith�compilerr
rTrQr\rgrnrNr r�<module>r|s���#�J#�	�	�������
�
�
�H�
%��
#�
�
�*�*�\�
"��0J�0J�f�$�$�)�/�
,���
�G�	�	�d�+�	�,�	r 

Youez - 2016 - github.com/yon3zu
LinuXploit