403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.224
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/remotefilelog/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�h�X���SSKJr SSKrSSKrSSKrSSKrSSKrSSKJr SSK	J
r
Jr SSKJ
r
JrJrJrJrJr SSKJrJr SSKJrJrJr \R4rSqSqSqSqSr S	r!S
r"Sr#"SS
5r$Sr%Sr&Sr'"SS5r(g)�)�annotationsN)�_)�bin�hex)�error�pycompat�revlog�sshpeer�util�wireprotov1peer)�hashutil�procutil�)�	constants�contentstore�
metadatastorec��[[R"U5R55n[R
R
XSSUSSU5$)N��rr
�sha1�digest�os�path�join)�reponame�file�id�pathhashs    �F/usr/lib/python3/dist-packages/hgext/remotefilelog/fileserverclient.py�getcachekeyr 0sA���8�=�=��&�-�-�/�0�H�
�7�7�<�<��2�A�,�����b�A�A�c��[[R"U5R55n[R
R
X!5$�Nr)rrrs   r�getlocalkeyr$5s1���8�=�=��&�-�-�/�0�H�
�7�7�<�<��%�%r!c�:�"SSUR5nX!lg)Nc�^�\rSrSr\R
S5r\R
S5rSrU4Sjr	U4Sjr
SrU=r$)�!peersetup.<locals>.remotefilepeer�;c�z^^�URS5(d[R"S5eUU4SjnTTS.U4$)N�
x_rfl_getfiles5configured remotefile server does not support getfilec�>�URSS5up[U5(a[R"TTU5eU$)N�r)�split�intr�LookupError)�d�code�datar�nodes   ��r�decode�?peersetup.<locals>.remotefilepeer.x_rfl_getfile.<locals>.decodeCs8����W�W�U�A�.�
���t�9�9��+�+�D�$��=�=��r!�sfilesnode��capabler�Abort)�selfrr3r4s `` r�
x_rfl_getfile�/peersetup.<locals>.remotefilepeer.x_rfl_getfile<s>����<�<� 0�1�1��k�k�L���
�"�D�1�6�9�9r!c�l�URS5(d[R"S5eSnSU0U4$)Nsx_rfl_getflogheadss:configured remotefile server does not support getflogheadsc�6�U(aURS5$/$)N�
)r-)r0s rr4�Dpeersetup.<locals>.remotefilepeer.x_rfl_getflogheads.<locals>.decodeSs��)*�q�w�w�u�~�2��2r!spathr7)r:rr4s   r�x_rfl_getflogheads�4peersetup.<locals>.remotefilepeer.x_rfl_getflogheadsKs>���<�<� 5�6�6��k�k�,���

3��T�?�F�*�*r!c���US:wag[RUR5;ag[US5(dg[RUR
R;agURS5nU(aU/nO/nUR[R5 UR
R(a;SRUR
R5nSU-nURU5 UR
R(a;SRUR
R5nSU-nURU5 SRU5US'g)Ns	getbundle�
_localrepos
bundlecapsr,sincludepattern=sexcludepattern=�,)
r�NETWORK_CAP_LEGACY_SSH_GETFILES�capabilities�hasattr�SHALLOWREPO_REQUIREMENTrD�requirements�get�append�BUNDLE2_CAPABLITY�includepatternr�excludepattern)r:�command�opts�
bundlecaps�patterns�
includecap�
excludecaps       r�_updatecallstreamopts�7peersetup.<locals>.remotefilepeer._updatecallstreamoptsXs���,�&���9�9��(�(�*�+���4��.�.���1�1����3�3�4�����-�0�J��(�\�
��
�
���i�9�9�:����-�-� �:�:�d�o�o�&D�&D�E��/�(�:�
��!�!�*�-����-�-� �:�:�d�o�o�&D�&D�E��/�(�:�
��!�!�*�-�"&�)�)�J�"7�D��r!c�H>�URX5 [TU]"X40UD6$r#)rV�super�_sendrequest)r:rP�argsrQ�	__class__s    �rrZ�.peersetup.<locals>.remotefilepeer._sendrequest�s&����&�&�w�5��7�'��>��>�>r!c�>�[5n[US5(d&URU[R"U55 [TU]"U40UD6$)NrZ)rYrHrVr�byteskwargs�_callstream)r:rPrQ�	supertyper\s    �rr`�-peersetup.<locals>.remotefilepeer._callstream�sG�����I��9�n�5�5��*�*�7�H�4H�4H��4N�O��7�&�w�7�$�7�7r!�)
�__name__�
__module__�__qualname__�__firstlineno__r�	batchabler;rArVrZr`�__static_attributes__�
__classcell__�r\s@r�remotefilepeerr';sJ���	�	"�	"�	:�
#�	:�
�	"�	"�
	+�
#�
	+�&	8�P	?�	8�	8r!rlrk)�ui�peerrls   r�	peersetupro:s��M8����M8�^$�Nr!c�:�\rSrSrSrSrSrSrS
SjrSr	Sr
g	)�cacheconnection�z�The connection for communicating with the remote cache. Performs
gets and sets by communicating with an external process that has the
cache-specific implementation.
c�J�S=Ul=UlUlSUlSUlg)NF)�pipeo�pipei�pipee�
subprocess�	connected�r:s r�__init__�cacheconnection.__init__�s%��/3�3��
�3�T�Z�$�*������r!c���UR(a[R"[S55e[R
"U5uUlUlUlUlSUl	g)Nscache connection already openT)
rtrr9rr�popen4rurvrwrx)r:�cachecommands  r�connect�cacheconnection.connect�sI���:�:��+�+�a� @�A�B�B�>F�o�o��?
�;��
�D�J��
�D�O���r!c��SnUR(a�URRS5 U"UR5 SUlU"UR5 SUlU"UR
5 SUlURR5 SUlSUlg![a N�f=f![a N+f=f)Nc�F�UR5 g![a gf=fr#)�close�	Exception)�pipes r�tryclose�'cacheconnection.close.<locals>.tryclose�s"��
��
�
����
��
�s��
 � sexit
F)rxru�writer�rtrvrw�communicate)r:r�s  rr��cacheconnection.close�s���	��>�>�
��
�
� � ��+�
�T�Z�Z� ��D�J��T�Z�Z� ��D�J��T�Z�Z� ��D�J�
����+�+�-�#�D�O�����!�
��
���
��
�s#�B&�=B6�&
B3�2B3�6
C�Cc���UR(a?URRU5 U(aURR5 ggg![a UR5 gf=fr#)rxrur��flush�OSErrorr�)r:�requestr�s   rr��cacheconnection.request�sW���>�>�
��
�
� � ��)���J�J�$�$�&����
�
��
�
��
�s�<A�A/�.A/c���UR(dgURR5SSnU(dUR5 U$![a UR5 W$f=f)N���)rxrt�readliner�r�)r:�results  r�receiveline�cacheconnection.receiveline�s\���~�~��	��Z�Z�(�(�*�3�B�/�F���
�
���
���	��J�J�L��
�	�s�4A
�
A(�'A()rxrvrurtrwN�T)rdrerfrg�__doc__rzrr�r�r�rircr!rrqrq�s ���
�
��8�
r!rqc��UR5n/nUH,nURURSXHUSSS.55 M. [U5HVup�XyR	5n
SXy'XHnUSSnU"[
R"S[U
5U
4-5X�5 U"5 MX SSS5 g!,(df   g=f)Nr*����r6s%d
%s)�commandexecutorrL�callcommand�	enumerater��io�BytesIO�len)
�remote�receivemissing�progresstick�missed�idmap�	batchsize�e�futures�m�i�r�file_r3s
             r�_getfilesbatchr��s���
�	�	�	!�Q����A��N�N��
�
�$���1�S�T�7�&K��
���f�%�D�A��
�!�!�#�A��G�J��H�E��S�T�7�D��2�:�:�i�3�q�6�1�+�&=�>��L��N�
&�
"�	!�	!�s�BB4�4
Cc���URS5 SnURnURnU[U5:a�Un	[	[U5X�-5n
U
nX9U
H#nUSSnXKn
SX�4-nURU5 M% UR
5 X9U
HnUSSnXKn
U"X�U5 U"5 M U[U5:aM�URS5 UR
5 g)N�x_rfl_getfilesrr��%s%s
r?)r`�_pipeo�_pipeir��minr�r�)r�r�r�r�r��stepr�rtru�start�end�	missingid�	versionidr�
sshrequests               r�_getfiles_optimisticr��s������(�)�	�A��M�M�E��M�M�E�
�c�&�k�/����#�f�+�u�|�,�����c�*�I�!�#�$��I��#�D�"�i�%6�6�J��K�K�
�#�+�	���
� �c�*�I�!�#�$��I��#�D��5�	�2��N�	+��c�&�k�/�*
�K�K���	�K�K�Mr!c�j^^^�URS5 URmURnUUU4Sjn[R"US9nSUlUR
5 THn	U	SSn
TU	nU"XkU
5 U"5 M UR5 TRS5 TR5 g)Nr�c�z>�TH$nUSSnTUnSX4-nTRU5 M& TR5 g)Nr�r�)r�r�)r�r�rr�r�r�rts    ���r�writer�"_getfiles_threaded.<locals>.writersF����I�!�#�$��I���#�D�"�i�%6�6�J��K�K�
�#�	 �
	���
r!)�targetTr�r?)
r`r�r��	threading�Thread�daemonr�rr�r�)
r�r�r�r�r�r�rur��writerthreadr�r�rrts
   ``       @r�_getfiles_threadedr�s�������(�)��M�M�E��M�M�E���#�#�6�2�L��L�������	��c�d�O�	��Y����u�I�.���	�����	�K�K���	�K�K�Mr!c�Z�\rSrSrSrSrSrSrSrSr	Sr
S	rSS
jrSr
SrS
rg)�fileserverclienti0z:A client for requesting files from the remote file server.c�H�URnXlX lURSS5UlUR(a%[R
"UR5UlUR
SS5UlUR
SS5Ul[5Ul
g)N�
remotefilelogscacheprocessscacheprocess.includepathsdebug)rm�repo�config�cacheprocessr�
expandpath�
configbool�cacheprocesspasspath�debugoutputrq�remotecache)r:r�rms   rrz�fileserverclient.__init__3s���
�W�W���	����I�I�&6��H������ $����0A�0A� B�D��%'�M�M��9�%
��!��=�=�)9�8�D���*�,��r!c�4�XlX lX0lX@lgr#)�	datastore�historystore�	writedata�writehistory)r:r�r�r�r�s     r�setstore�fileserverclient.setstoreEs��"��(��"��(�r!c�t�URRRURR5$r#)r��connectionpoolrK�fallbackpathrys r�_connect�fileserverclient._connectKs'���y�y�'�'�+�+�D�I�I�,B�,B�C�Cr!c	�*
�URR(dUR5 URnURnURn[U5nSU-n0nURnUH4up�[X�U
5nUR(aXiS--
nXkS--
nX�U'M6 URU5 URR[S5US9nURS5 /n
UR5nU(dQ[U
5nUHnX�;dM
U
R!U5 M URR#[S55 O`US:XaOYUR%S	5(a0UR'S
5nUR)[+US55 M�U
R!U5 M�[,[U
5-
qU[U
5-
nURUUS9 URR/SS
UUUUS9 [0R2"S5nU
(Ga'URR4nSURlUR75nUR8nUR;[<R>5(a�[AU[B5(d[DRF"S5eURRISS5nURRKSS5nUS:Xa[LnO[NnU"UURPUR(U
UU5 O�UR;S5(a�UR;S5(aSnOSnURRISSU5nURRSS[U
5-5 [UUURPUR(U
UU5 O[DRF"S5eSSS5 URR/SSURVU-
UU-
S9 UURlS [U
5SR[U
54-nURU5 UR]5 UR_URR`5 [0R2"U5 g!,(df   N�=f![Xa. URR/SSURVU-
UU-
S9 ef=f!UURlf=f![0R2"U5 f=f)!z�Takes a list of filename/node pairs and fetches them from the
server. Files are stored in the local cache.
A list of nodes that the server couldn't find is returned.
If the connection fails, an exception is raised.
sget
%d
r,r?sdownloading)�totalrs@warning: cache connection closed early - falling back to server
�0s_hits_�_rr�s"remote cache hit rate is %r of %r
)�hitr�Fs"remotefilelog requires ssh serverssgetfilesstepsgetfilestypesthreadedr*sbatch�d�
s	batchsizes1requesting %d files from remotefilelog server...
s>configured remotefilelog server does not support remotefilelogNsremotefilefetchlogsSuccess
)�
fetched_files�total_to_fetchsFail
s
set
%d
%s
)1r�rxrr�r�r��namer r�r�rm�makeprogressr�updater��setrL�warn�
startswithr-�	incrementr.�fetchmisses�logr�umask�verboser�rnr8rrF�
isinstance�
_sshv1peerrr9�	configintr�r�r�r��debugr��posr�r�complete�markrepor)r:�fileids�cacher�r�r�r�r�rrr�fullid�progressr�r��	missedset�parts�	fromcache�oldumaskr��connr�r��getfilestype�	_getfiles�batchdefaultr�s                           rr��fileserverclient.requestNs������)�)��L�L�N�� � ���N�N�	��y�y���G�����&�����9�9���H�D� ���4�F��(�(��%�<�'����~�%�G� �&�M� �	�
�
�g���7�7�'�'��.�(9��'�G�����������)�)�+�I����K�	�!&�I�$�1��
�
�i�0�"'�������6�����D� ���#�#�I�.�.�!����-���"�"�3�u�Q�x�=�1���M�M�)�$�-�2	�s�6�{�"���C��K�'�	����	���/�������2�����
	�	
��8�8�E�?��W	���'�'�/�/��"'�����E.�����D�!%����!�>�>�%�E�E���$.�f�j�#A�#A�&+�k�k�$I�'"�!"�$(�7�7�#4�#4� 0�/�$�D�,0�7�7�>�>� 0�/�,�L� ,�{�:�,>�	�,@�	�%� &� $� 3� 3� (� 2� 2� &� %� $�
�$�^�^�,<�=�=�%�~�~�h�7�7�/2��/1��(,���(9�(9� 0�,��)�I�!�G�G�M�M�!=�?B�6�{�!K��+� &� $� 3� 3� (� 2� 2� &� %� )�
�#(�+�+�!C�#��a)�j�G�G�K�K�-�$�&.�l�l�Y�&>�',�y�'8�	 ��'.�D�G�G�O�*�c�&�k�5�:�:�f�;M�-N�N���
�
�g�&�����
���t�y�y�~�~�.��H�H�X��])���v!���G�G�K�K�-�!�&.�l�l�Y�&>�',�y�'8�	 �����'.�D�G�G�O��
�H�H�X��sJ�/S:�
R)�E9R�4R)�A6S:�
R&�"R)�)8S!�!S$�$S7�7S:�:Tc���UR5SSnU(d)[R"[S5[S55e[	U5nURU5n[
U5U:wa7[R"[S5[S5[
U5U4-5eURRU[U5[R"U55 g)Nr�s error downloading file contents:sconnection closed earlysonly received %s of %s bytes)r�r�
ResponseErrorrr.�readr�r��addremotefilelognoder�zlib�
decompress)r:r��filenamer3�line�sizer2s       rr��fileserverclient.receivemissing�s����}�}��s��#����%�%��5�6��,�-��
��4�y���y�y�����t�9����%�%��5�6��1�2�c�$�i��5F�F��
�
	
���+�+��c�$�i�����!6�	
r!c���UR(aASURURR4-nURR	U5 g"SS5nU"5Ulg)Ns%s %sc�0�\rSrSrSrSrSSjrSrSrg)	�-fileserverclient.connect.<locals>.simplecacheic� �/UlSUlg)NT)�
missingidsrxrys rrz�6fileserverclient.connect.<locals>.simplecache.__init__s��&(�D�O�%)�D�Nr!c��gr#rcrys rr��3fileserverclient.connect.<locals>.simplecache.closes��r!c��URS5nUSS:wagUSSUlURRS5 g)Nr?rsgetrr�r�)r-rrL)r:�valuer��liness    rr��5fileserverclient.connect.<locals>.simplecache.requests>��!�K�K��.�E��Q�x�6�)��&+�A�b�k�D�O��O�O�*�*�4�0r!c�l�[UR5S:�aURRS5$g)Nr)r�r�poprys rr��9fileserverclient.connect.<locals>.simplecache.receivelines+���4�?�?�+�a�/�#���2�2�1�5�5�r!)rxrNr�)	rdrerfrgrzr�r�r�rircr!r�simplecachers��*��1� r!r)r�r��_pathr�r)r:�cmdrs   rr�fileserverclient.connect�sT������d�/�/����1E�1E�F�F�C����$�$�S�)�
 �
 �( +�}�D�r!c	���[(a�S[[[[[[-
5[[5-S-[4-nUR
(aURRU5 URRSURSS5[[[[S-S9 URR(aURR5 gg)NsN%d files fetched over %d fetches - (%d misses, %0.2f%% hit ratio) over %0.2fs
gY@sremotefilelog.prefetch�%s%%i�)�remotefilelogfetched�remotefilelogfetches�remotefilelogfetchmisses�remotefilelogfetchtime)
�fetches�fetchedr��float�	fetchcostr�rmr�r��replacer�rxr�)r:�msgs  rr��fileserverclient.closes����7�B�����g��+�,�u�W�~�=��E���	�C���������S�!��G�G�K�K�)����D�%�(�%,�%,�)4�'0�4�'7�

�
����%�%����"�"�$�&r!c��URn/nUHNupxUS:Xd%[U5S:XdURU5(dM2URU[	U545 MP UR
n	URn
U(a:[R"UR6n	[R"UR6n
[5nU(a URU	RU55 U(a URU
RU55 [UVVs/sH"up�X�RR :XdM SPM$ snn5n
U
(aOUVVs/sH#up�X�RR :wdM X�4PM% nnnUR"R%SU
-SS9 U(Ga=[&S-
q[&S:�ae[&S	:a[[&S:XaAUR"R)S
S5nU(aUR"R+US-5 UR-5 [/U5VVs/sHupxU[1U54PM nnn[2[U5-
q[4R4"5nUR7U5nU(a+[8R:"[=S
5[U5-5e[>[4R4"5U-
-
qURAU5 ggs snnfs snnfs snnf)z.downloads the given file versions to the caches.hgtags�*NsDremotefilelog not fetching %d null revs - this is likely hiding bugssremotefilelog-ext)r�r��r�sfetchwarningr?sunable to download %d files)!r�r��shallowmatchrLrr�r�r�unioncontentstore�shareddatastoresr�unionmetadatastore�sharedhistorystoresr�r��
getmissing�nullidrm�	develwarnr(r�r��
logstacktrace�sortedrr)�timer�rr9rr+�_lfsprefetch)r:r��force�	fetchdata�fetchhistoryr��
idstocheckrrr�r�r�unused�nullids�f�fetchwarningr�s                 r�prefetch�fileserverclient.prefetch7s����y�y���
��H�D��
�"��r�7�b�=��(�(��.�.�����t�S��W�o�.� ��N�N�	��(�(���$�6�6��8M�8M�N�I�(�;�;��)�)��L��U�
�����i�2�2�:�>�?�����l�5�5�j�A�B��$.�I�J�j�f�"�	�	�8H�8H�2H�T�J�I�
���%/��%/�E�A�2���9I�9I�3I����Z�
��
�G�G���5�7>�?�,�
�
���q�L�G��"�}��2���b�=�#'�7�7�>�>�(�/�$�L�$������\�E�%9�:��"�"�$�:@��:L�M�:L�h�d�4��R��/�:L�J�M��s�:��&�G��I�I�K�E����j�1�J���k�k��4�5��J��G���
�����u�,�,�I����g�&�/��
J����0Ns�K+
�K+
�K1�>K1�3K7c�H^
�[(a%[URRS5(dg[RRUR5(dg/nURRRm
UH�up4[U5nURRU5nURU5[R-(dMTURU5n[RRU5nUR5n	T
R!U	5(aM�UR#U5 M� [%U5S:�aMURRR&R)UT
5 [+U
4SjU55(degg)N�lfslocalblobstorerc3�b># �UH$nTRUR55v� M& g7fr#)�has�oid)�.0�p�stores  �r�	<genexpr>�0fileserverclient._lfsprefetch.<locals>.<genexpr>�s#����<�8�a�u�y�y�����)�)�8�s�,/)�_lfsmodrHr��svfs�wrapper�candownloadrJrr�flagsr	�REVIDX_EXTSTORED�rawdata�pointer�deserializerMrLrLr��lfsremoteblobstore�	readbatch�all)r:r��pointersrrr3�rlog�textrOrMrPs          @rr>�fileserverclient._lfsprefetch�s#����w�g�d�i�i�n�n�6I�J�J�����*�*�4�9�9�5�5�����	�	���0�0���H�D��r�7�D��9�9�>�>�$�'�D��z�z�$��&�"9�"9�9�9��|�|�D�)���O�O�/�/��5���e�e�g���y�y��~�~��O�O�A�&� ��x�=�1���I�I�N�N�-�-�7�7��%�H��<�8�<�<�<�<�<�r!c	��SSKnURRSSSRSUR	5555 g)Nrr�s"excess remotefilelog fetching:
%s
r!c3�N# �UHn[R"U5v� M g7fr#)r�sysbytes)rN�ss  rrQ�1fileserverclient.logstacktrace.<locals>.<genexpr>�s ���L�3K�a�X�&�&�q�)�)�3K�s�#%)�	tracebackrmr�r�format_stack)r:rhs  rr;�fileserverclient.logstacktrace�s6���������3��H�H�L�9�3I�3I�3K�L�L�	
r!)
r�r�r�r�r�r�r�rmr�r�N)FTF)rdrerfrgr�rzr�r�r�r�rr�rGr>r;rircr!rr�r�0sC��D�-�$)�D�[�z
�&-�>%�6BG�I'�V=�(
r!r�))�
__future__rr�rr�r=r	�mercurial.i18nr�mercurial.noderr�	mercurialrrr	r
rr�mercurial.utilsr
r�rrr�	sshv1peerr�r+r(r)r�rSr r$rorqr�r�r�r�rcr!r�<module>rrs���#�	�	�����#����
���
�
�
�
�	�
��
����
��B�
&�
P$�fB�B�J�>�@�>m
�m
r!

Youez - 2016 - github.com/yon3zu
LinuXploit