403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.216.220
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/mercurial/hgweb/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/mercurial/hgweb/__pycache__/hgweb_mod.cpython-313.pyc
�

6�hDI����SSKJr SSKrSSKrSSKJrJrJrJrJ	r	 SSK
JrJrJ
r
JrJrJrJrJrJrJrJrJrJrJrJr SSK
JrJrJrJrJr Sr SS	jr!SS
jr""SS5r#"S
S5r$Sr%g)�)�annotationsN�)�
ErrorResponse�HTTP_BAD_REQUEST�	cspvalues�	permhooks�
statusmessage�)�encoding�error�
extensions�	formatter�hg�hook�	profiling�pycompat�	registrar�repoview�templatefilters�	templater�templateutil�ui�wireprotoserver)�common�request�webcommands�webutil�wsgicgic�h�URRSS5U"SS5S4nU[X254$)N�style�webspaper)�qsparams�get�	_stylemap)�req�configfn�templatepath�styless    �;/usr/lib/python3/dist-packages/mercurial/hgweb/hgweb_mod.py�getstyler*1s<��������4�(����"���F�
�9�V�2�2�2�c��UH�nU(aaU[R[R4;d=[RU;d)[R(a[RU;aMm[
RRUS5SU-S4nUH*n[R"XA5upVU(dM$X%U4s s $ M� [SU-5e)z�Return path to mapfile for a given style.

Searches mapfile in the following locations:
1. templatepath/style/map
2. templatepath/map-style
3. templatepath/map
smapsmap-sNo hgweb templates found in %r)r�oscurdir�ospardir�ossep�osaltsep�os�path�joinr�try_open_template�RuntimeError)r(r2�style�	locations�location�mapfile�fps       r)r$r$:s��������*�*�H�,=�,=�>�>��~�~��&�� � ��!�!�U�*���W�W�\�\�%��0�'�E�/�6�J�	�!�H�#�5�5�h�E�K�G��w��r�)�)�"��"�8�4�?�
@�@r+c��URS5(aUSSnU(aSU-U-nUnURS5(aUSSn/nUnS/URS5-n[U5HEnU(aU(d O6UR	XFS.5 [
RRU5nMG [R"[U55$)z�Return a 'URL breadcrumb' list

A 'URL breadcrumb' is a list of URL-name pairs,
corresponding to each of the path items on a URL.
This can be used to create path navigation entries.
�/N���rr+)�url�name)
�endswith�
startswith�split�reversed�appendr1r2�dirnamer�mappinglist)�url�prefix�relpath�
breadcrumb�urlel�	pathitems�pathels       r)�makebreadcrumbrNWs����|�|�D����#�2�h��
��V�m�c�!���G����$����!�"�+���J��E����
�
�d�+�+�I��9�%���U�����5�:�;�������&��	&�
�#�#�H�Z�$8�9�9r+c�H�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
g)
�requestcontext�qz�Holds state/context for an individual request.

Servers can be multi-threaded. Holding state on the WSGI application
is prone to race conditions. Instances of this class exist to hold
mutable and race-free state for requests.
c��X lURUlX0lX@lURn[
R"X#5(aGUbDUS-[R;a-URRURS-5UlURSS5UlURSS5UlURSS5Ul
URSS5UlURSS5UlUR#SSS	S
9UlUR&Ul[)URR*5uUlUlg)Ns.hiddenr!s
maxchangessstripessmaxshortchangessmaxfiless
allow-pulls	templatesF��	untrusted)�repo�reponamer%�res�
filternamer�hashiddenaccessr�filtertable�filtered�	configint�
maxchanges�stripecount�maxshortchanges�maxfiles�
configbool�	allowpull�configr'�websubtablerr�csp�nonce)�self�apprUr%rW�current_filters      r)�__init__�requestcontext.__init__ys���	�����
����������"�"�4�-�-��*���+�x�/C�/C�C��	�	�*�*�4�?�?�Z�+G�H�D�I��.�.���?����>�>�&�*�=���#�~�~�f�6H�I������v�{�;��
������?���
!�K�K����K�N����?�?���(������6����$�*r+c�r�URSS5 URRR"U0UD6$�NrTT)�
setdefaultrUrrc�rg�args�kwargss   r)rc�requestcontext.config�s0�����+�t�,��y�y�|�|�"�"�D�3�F�3�3r+c�r�URSS5 URRR"U0UD6$rm)rnrUrraros   r)ra�requestcontext.configbool��0�����+�t�,��y�y�|�|�&�&��7��7�7r+c�r�URSS5 URRR"U0UD6$rm)rnrUrr\ros   r)r\�requestcontext.configint�s0�����+�t�,��y�y�|�|�%�%�t�6�v�6�6r+c�r�URSS5 URRR"U0UD6$rm)rnrUr�
configlistros   r)ry�requestcontext.configlist�rur+c�X�[R"URRU5$�N)r�archivelistrUr)rg�nodeids  r)r}�requestcontext.archivelist�s���"�"�4�9�9�<�<��8�8r+c�`^�TRSS5nTRSS5nTRSS5=(d URRS5S-nURS5(dUS-
n0n[	UTRTR
5unupxn	XvS:XaXuS'[R"US	5n
TR(d[TRSS
S5=(d< UR=(d) UR=(d TRRTl0n[R"U5nU"S[S
9U4Sj5n
URS-UUUURTR[RU
[!UR5UTR"S.n[R$"U5nU"SSS9U4Sj5n[&R("TRR*TR5n[,R,R/X�X�US9$)Nr!�logourl�logoimg�	staticurlr<s/static/rr �?r?r+swebsub)�intypec�F>�[R"UTR5$r|)r�websubrd)�textrgs �r)�websubfilter�.requestcontext.templater.<locals>.websubfilter�s���"�)�)�$��0@�0@�A�Ar+)r>r�r�r�surlbasesrepo�encodingssessionvarsspathdefr snonce�motd�)�requiresc3�6># �TRSS5v� g7f)Nr!r�)rc)�context�mappingrgs  �r)�motd�&requestcontext.templater.<locals>.motd�s�����+�+�f�g�.�.�s�)r:�filters�defaults�	resources)rc�apppath�rstripr@r*r'r�sessionvarsrVrU�rootr�templatefilter�bytes�advertisedbaseurlrrNrf�templatekeywordr�templateresourcesrr�frommapfile)rgr%�logourl�logoimg�	staticurl�varsr(r6r9r:r�r�r�r�r�r�r��tress`                 r)r�requestcontext.templater�s�����+�+�f�j�1���+�+�f�j�1���K�K���-�
6��{�{�!�!�$�'�+�5�	��!�!�$�'�'����I���'/�����d�/�/�(
�$��$����1�I��"��N��)�)�$��5���}�}����F�G�S�1�"��<�<�"��;�;�"��9�9�>�>�	
�M���"�1�1�'�:��	�	�%�	0�	B�
1�	B��K�K�$�&���#��-�-��]�]�!�*�*�'�&�s�{�{�3���j�j�
��$�3�3�H�=��	��2�	.�	/�
/�	/��*�*�4�9�9�<�<����C���"�"�.�.��G�$�/�
�	
r+c��URRS:waJ[R"U5nURRURRX55 URR5$)z=Helper function to send a response generated from a template.sHEAD)	r%�methodr�byteskwargsrW�
setbodygen�tmpl�generate�sendresponse)rg�namerqs   r)�sendtemplate�requestcontext.sendtemplate�sV���8�8�?�?�g�%��)�)�&�1�F��H�H����	�	� 2� 2�4� @�A��x�x�$�$�&�&r+)
rbrer]r`r_rfrUrVr%rWr^r'rdN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rjrcrar\ryr}rr��__static_attributes__r�r+r)rPrPqs1���"7�J4�8�7�8�9�>
�@'r+rPc�j�\rSrSrSrS
SjrSr\RS5r	Sr
SrS	rS
r
SrSrg)�hgweb�aHTTP server for individual repositories.

Instances of this class serve HTTP responses for a particular
repository.

Instances are typically used as WSGI applications.

Some servers are multi-threaded. On these servers, there may
be multiple active threads inside __call__.
Nc�Z�[U[5(ayU(aUR5nOJ[RR5n[R"U5 [R"U5 [R"XA5nOUnURRSSSS5 URRSSSS5 URRSSSS5 URRSSSS5 URRSSURS5 URRSSURS5 URRSSS	S5 URRSSS	S5 URRS
SSS5 URRS
SSS5 [R"URU55/UlUR SUl[$R&"S
5 X lg)Nsuisreport_untrustedsoffshgwebsnonttystruesforcecwdssignal-safe-locksfalsesprogresssdisablerT)�
isinstancer��copy�uimodr�loadr
�loadall�
populateuir�
repository�	setconfig�baseuir��cachedlocalrepo�_webifyrepo�_repos�	_lastrepor�redirectrV)rgrUr�r��u�rs      r)rj�hgweb.__init__s����d�E�"�"���K�K�M���H�H�M�M�O���"�"�1�%��%�%�a�(��
�
�a�&�A��A�	�����u�1�6�8�D�	�����5�"5�v�x�H�	�����u�i��(�;�	�����5�)�W�h�?�	�����u�k�1�6�6�8�<�	�����5�+�q�v�v�x�@�
	
�����u�1�8�X�F�	�����5�"5�x��J�	
�����{�J���B�	�����;�
�G�X�F��)�)�$�*:�*:�1�*=�>�?������Q�����
�
�d���
r+c�R�[U5n[R"U5UlU$r|)�
getwebviewr�
getwebsubsrd)rgrUs  r)r��hgweb._webifyrepo(s$���$���"�-�-�d�3����r+c#�# �UR(a-URR5nUR5up#O,URR	5nUR5up#U(aURU5nXlURUlUv� URRU5 g!URRU5 f=f7f)a�Obtain a repo unique to the caller.

Internally we maintain a stack of cachedlocalrepo instances
to be handed out. If one is available, we pop it and return it,
ensuring it is up to date in the process. If one is not available,
we clone the most recently used repo instance and return it.

It is currently possible for the stack to grow without bounds
if the server allows infinite threads. However, servers should
have a thread limit, thus establishing our limit.
N)r��pop�fetchr�r�r��mtimerD)rg�cachedr��createds    r)�_obtainrepo�hgweb._obtainrepo-s�����;�;��[�[�_�_�&�F�����J�A�w��^�^�(�(�*�F�����J�A��� � ��#�A����\�\��
�	'��G��K�K���v�&��D�K�K���v�&�s�BC�B=�!C�=C�Cc��[RRSS5RS5(d[	S5e[
R"U5 g)zuStart a server from CGI environment.

Modern servers should be using WSGI and should avoid this
method, if possible.
sGATEWAY_INTERFACEr+sCGI/1.sJThis function is only intended to be called while running as a CGI script.N)r�environr#rAr5r�launch)rgs r)�run�	hgweb.runJsP�����#�#�$8�#�>�I�I��
�
��9��
�	���t�r+c�|�[R"U5n[R"X25nURX45$)zCRun the WSGI application.

This may be called by multiple threads.
)�
requestmod�parserequestfromenv�wsgiresponse�run_wsgi)rg�env�respondr%rWs     r)�__call__�hgweb.__call__Ys3��
�,�,�S�1���%�%�c�3���}�}�S�&�&r+c#�B# �UR5nURRSS5n[R"URUS9 URXU5Shv�N SSS5 SSS5 gN!,(df   N=f!,(df   g=f7f)z�Internal method to run the WSGI application.

This is typically only called by Mercurial. External consumers
should be using instances of this class as the WSGI application.
s	profilingsenabled)�enabledN)r�rrar�profile�_runwsgi)rgr%rWrUr�s     r)r��hgweb.run_wsgicsv����
�
�
�4��g�g�(�(��z�B�G��"�"�4�7�7�G�<��=�=��4�8�8�8�=� �
�9�=�<�� �
�sF�B�<B�A=�%A;�&A=�*B�2	B�;A=�=
B	�B�
B�Bc��
�[XX5nURSS5[lURURR
lUR(aURURS'[R"XAX R5nU(aUR5$URb
URnO0URRS5SRS5SnUR!SS5nS	UR";Ga�U(Ga�US(Ga�UR%S5nUR'S
5n	U	S:waUSU	UR"S'X�S
-Sn[)[*[,R."U55(aX�R"S	'US:XaSR1U5UR"S'O�U(a9US(a/UR%S5R3SS5n
X�R"S'U(aBSUR";a
UR"S	UHnUR"R5SU5 M! URR7SS5nUS:XaSU;aSUR"S'US:Xa}UR"Sn
[8R:R=5HLup�USnU
R?U5(dM"U
S[AU5*UR"S'X�R"S'MN OUR"R7S	S5nURCU5Ul"URDRGSS[R05nUS:waURXAS5 US:Xa8URDRGS05UR"S	'UR"S	nURISS5(a�URJ(dsSURL-nURR7S5U:Xa6SUl'URS	URSS5 UR5$UURS '[,R."U5[*RT;aS!n[W[XU5eS"Ul'UURS'[[[*[,R."U55"U5$![Pa N�f=f![\R^[\R`4a�n[,Rb"U5n[)US#5(a.[eU[\Rf5(dS$URh-nS%Ul'WURS'URkS&US'9sSnA$SnAf[\Rl[\Rn4aDnS(Ul'WURS'URkS&[,Rb"U5S'9sSnA$SnAf[\Rpa:nS)Ul'WURS'URkS&URrS'9sSnA$SnAf[Va�nURHunnUURU'M [uURv[,Rb"U55Ul'WURS'URkS&[,Rb"U5S'9sSnA$SnAff=f)*Nr!r�sContent-Security-Policy�&r�;r<r
scmd�-r=r rsstaticsfiles%2Fsnodes
User-Agentr+srevs	mercurialsrawsarchivestypesmimetypesdefaultscachesW/"%d"s
If-None-Matchs304 Not ModifiedsContent-TypesETagsmethod not founds200 Script output followsr�srevision not found: %ss
404 Not Foundserror)rs500 Internal Server Errors
403 Forbidden)<rPrcr�rawenvrUrr�re�headersr�handlewsgirequest�
check_permr��dispatchpath�querystring�	partitionrBr"r��rfind�hasattrrr�sysstrr3�replace�addr#r�archivespecs�itemsr@�lenrr��renderrarfr��status�KeyError�setbodybytes�__all__rr�getattrr�LookupError�RepoLookupError�bytestrr��ManifestLookupErrorr�r��	RepoError�StorageError�Abort�messager	�code)rgr%rWrU�rctx�handled�queryrp�cmdr6�node�a�ua�fn�type_�spec�ext�ctype�tag�msg�err�e�k�vs                        r)r��hgweb._runwsgins����d�#�3��!�K�K���<���"�z�z��	�	�����8�8�7;�h�h�C�K�K�2�3�!�3�3��s�O�O�
����#�#�%�%����'��$�$�E��O�O�-�-�d�3�A�6�@�@��F�q�I�E��{�{�4��#������%�$�4��7�7��(�(�1�+�C��I�I�d�O�E���{�),�V�e�����X�&��!�)�+�&���{�H�O�O�C�$8�9�9�'*���V�$��i��(,�	�	�$�����W�%��D��G��8�8�A�;�.�.�v�t�<�D�,0�L�L��)���#�,�,�.��L�L��1�!�����(�(��!�4�"��������4�B��f�}���!3�)/����X�&��j� ��\�\�'�*��#*�#7�#7�#=�#=�#?�K�E��q�'�C��{�{�3�'�'�02�;�c�#�h�Y�����W�-�05���W�-�	$@���,�,�"�"�6�3�/�C�D	J����s�+�D�I��I�I�$�$��k�8�+<�+<�=��E�
�i������4�0��c�z�'+�y�y�'7�'7�
�B�'G����V�$��l�l�6�*�����v�x�0�0�����$�*�*�,���;�;�?�?�#3�4��;�!4�C�J���K�K��8��$�$�S�)��+�+�-�-�'*����G�$����s�#�;�+>�+>�>�)��$�$4�c�:�:�:��
�/4����O�,��{�H�O�O�C�,@�A�$�G�G��'$�����*�!�!�5�#8�#8�9�		:��"�"�3�'�C��s�F�#�#�J��U�.�.�-�-�0�#�(�(�:��)�C�J�+0�C�K�K��(��$�$�X�S�$�9�9������!3�!3�4�	J�5�C�J�+0�C�K�K��(��$�$�X�X�5E�5E�a�5H�$�I�I���{�{�	@�)�C�J�+0�C�K�K��(��$�$�X�Q�Y�Y�$�?�?���	J��	�	���1�!"����A��"�&�q�v�v�x�/?�/?��/B�C�C�J�+0�C�K�K��(��$�$�X�X�5E�5E�a�5H�$�I�I��	J�s��-C5S*�#
S�0 S*�BS*�
S'�$S*�&S'�'S*�*$[�A:V�[�'[�59W4�.[�4[�/Y�:[�
[�
B[�[�[c�0�[HnU"XU5 M gr|)r)rgr
r%�op�permhooks     r)r��hgweb.check_perm�s��!�H��T��#�"r+)r�r�r�rVrd)NN)r�r�r�r�r�rjr��
contextlib�contextmanagerr�r�r�r�r�r�r�r�r+r)r�r��sH��	�!�F�
���'��'�8
�'�	9�IJ�V$r+r�c���URRSSSS9nUS:XaUR5$U[R;aURU5$URS5$)a�The 'web.view' config controls changeset filter to hgweb. Possible
values are ``served``, ``visible`` and ``all``. Default is ``served``.
The ``served`` filter only shows changesets that can be pulled from the
hgweb instance.  The``visible`` filter includes secret changesets but
still excludes "hidden" one.

See the repoview module for details.

The option has been around undocumented since Mercurial 2.5, but no
user ever asked about it. So we better keep it undocumented for now.r!sviewTrSsallsserved)rrc�
unfilteredrrZr[)rU�
viewconfigs  r)r�r��s]���������4��@�J��V����� � �	�x�+�+�	+��}�}�Z�(�(��}�}�Y�'�'r+r|)r+)&�
__future__rr$r1rrrrrr	�rrr
rrrrrrrrrrrr�rrr�rrrr*r$rNrPr�r�r�r+r)�<module>r+sl��#��	��������$��3�A�::�4E'�E'�PB$�B$�J(r+

Youez - 2016 - github.com/yon3zu
LinuXploit