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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�hAH��D�SSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKJ	r	 SSK
Jr SSKJ
r
JrJr SSKJr SSKJr \
R*"S	5rSrS
r\rSrSrS
rSrS
r"SS5r"SS5r "SS5r!"SS\!5r""SS\!5r#"SS5r$g)�)�annotationsN)�_)�hex)�policy�util�vfs)�hashutil�)�shallowutil�osutil����i g�������?c�2�\rSrSrSrSrSrSrSrSr	g)	�_cachebackedpacks�7c
���[U5Ul[R"U5UlSUl[
[[U[U5555HnURX5 M g�N)�set�_packsr�lrucachedict�	_lrucache�	_lastpack�reversed�range�min�len�_movetofront)�self�packs�	cachesize�is    �>/usr/lib/python3/dist-packages/hgext/remotefilelog/basepack.py�__init__�_cachebackedpacks.__init__8sW���%�j����*�*�9�5�������%��I�s�5�z� :�;�<�A����e�h�'�=�c�"�SURU'g)NT)r�r�packs  r"r�_cachebackedpacks._movetofrontBs��#����t�r%c�d�URb#URUR5 SUlggr)rr�rs r"�_registerlastpackusage�(_cachebackedpacks._registerlastpackusageFs*���>�>�%����d�n�n�-�!�D�N�&r%c�|�UR5 URU5 URRU5 gr)r,rr�addr's  r"r/�_cachebackedpacks.addKs.���#�#�%�	
���$��������r%c#��# �UR5 URH
nXlUv� M URVs1sHoiM nnURU-
H
nXlUv� M SUlgs snf7fr)r,rrr)rr(�cachedpackss   r"�__iter__�_cachebackedpacks.__iter__Ssp����#�#�%��N�N�D�!�N��J�#�)-���7���t���7��K�K�+�-�D�!�N��J�.�
����8�s�<A8�A3�	/A8)rrrN)
�__name__�
__module__�__qualname__�__firstlineno__r#rr,r/r3�__static_attributes__�r%r"rr7s��(�$�"�
�r%rc�X�\rSrSrSrSrSrSrSrSr	Sr
S	rSSjrSr
S
rSrg
)�
basepackstore�e�dc��XlX lSUl/nUR5H*un nUR	U5nURU5 M, [X0R5Ulg![
aHn[
USS5[R:waUR[S5XG4-5 SnAM�SnAff=f)Nr�errnosunable to load pack %s: %s
)�ui�path�lastrefresh�_getavailablepackfilessorted�getpack�	Exception�getattrr@�ENOENT�warnr�appendr�DEFAULTCACHESIZEr)rrArBr�filepath�__r(�exs        r"r#�basepackstore.__init__is������	������ $� A� A� C��H�b�"�
��|�|�H�-��
�L�L���!D� '�u�.C�.C�D��
���

��2�w��-����=��G�G�A�=�>�(��O�P���

�s�A/�/
C�9=B<�<Cc#��# �[UR5n[UR5n[5n[R
"[5n[R
"[5n[RURSS9H�upgnSn	Xa*SUR:XaUSU*n	OXb*SUR:XaUSU*n	U	(dMDXI==UR-
ss'XYRUR5 X�;a>[RRURU	5[!XY5XI4v� M�UR#U	5 M� g![$a gf=f7f)z�For each pack file (a index/data file combo), yields:
  (full path without extension, mtime, size)

mtime will be the mtime of the index/data file (whichever is newer)
size is the combined size of index/data file
T)�statN)r�INDEXSUFFIX�
PACKSUFFIXr�collections�defaultdict�int�listr�listdirrB�st_sizerJ�st_mtime�os�join�maxr/�FileNotFoundError)
r�indexsuffixlen�
packsuffixlen�ids�sizes�mtimes�filename�typerQ�ids
          r"�_getavailablepackfiles�$basepackstore._getavailablepackfiles�s;����T�-�-�.���D�O�O�,�
��e���'�'��,���(�(��.��	�(.���t�y�y�t��(L�$������O�,�-��1A�1A�A�!�"2�N�?�3�B��n�o�.�$�/�/�A�!�/�M�>�2�B�
�2��I����-�I��J�%�%�d�m�m�4��y��G�G�L�L����B�7���
�O�!�I��������))M��*!�	��	�s2�A)E*�,AE�BE�E*�
E'�$E*�&E'�'E*c#�# �/nUR5Hup#nURX4U45 M [USS9nUHup4nX#U4v� M g7f)z�Like `_getavailablepackfiles`, but also sorts the files by mtime,
yielding newest files first.

This is desirable, since it is more likely newer packfiles have more
desirable data.
T)�reverseN)rgrJ�sorted)r�filesrB�mtime�sizes     r"rD�*basepackstore._getavailablepackfilessorted�s[�����!%�!<�!<�!>��D���L�L�%�t�,�-�"?��u�d�+��!&��E���t�#�#�"'�s�A
Ac�V�SnSnUR5Hu p4X-
nUS-
nM X4$)a$Returns the total disk size (in bytes) of all the pack files in
this store, and the count of pack files.

(This might be smaller than the total size of the ``self.path``
directory, since this only considers fuly-writen pack files, and not
temporary files or other detritus on the directory.)
rr
)rg)r�	totalsize�countrMrns     r"�gettotalsizeandcount�"basepackstore.gettotalsizeandcount�sA���	��� �7�7�9�L�B����I��Q�J�E�:���r%c�0�UR5upUUS.$)z+Returns metrics on the state of this store.)snumpackss
totalpacksize)rs)rrnrrs   r"�
getmetrics�basepackstore.getmetrics�s"���/�/�1����"�
�	
r%c��[5er��NotImplementedError)rrBs  r"rE�basepackstore.getpack����!�#�#r%c���UnURHnURU5nU(aMUs $ U(a(UR5HnURU5nM U$r)r�
getmissing�refresh)r�keys�missingr(s    r"r~�basepackstore.getmissing�sY�����J�J�D��o�o�g�.�G��7���
��������/�/�'�2��'��r%Nc�L�URHnURU5 M gr)r�
markledger)r�ledger�optionsr(s    r"r��basepackstore.markledger�s���J�J�D��O�O�F�#�r%c��SUlg)zvTells the store that there may be new pack files, so the next time it
has a lookup miss it should check for new files.rN)rCr+s r"�markforrefresh�basepackstore.markforrefresh�s����r%c�~�[R"5n/nXR[-:�a�XlURVs1sHo3RiM nnUR5HKun nXT;dMUR
U5nURU5 URRU5 MM U$s snf)zlChecks for any new packs on disk, adds them to the main pack list,
and returns a list of just the new packs.)	�timerC�REFRESHRATErrBrDrErJr/)r�now�newpacks�p�previousrLrM�newpacks        r"r�basepackstore.refresh�s����i�i�k�����!�!�K�/�/�"��(,�
�
�3�
�1���
�H�3�$(�$E�$E�$G� ��"�b��+�"�l�l�8�4�G��O�O�G�,��J�J�N�N�7�+�	%H����4s�B:)rCrrBrAr)r5r6r7r8rKr#rgrDrsrvrEr~r�r�rr9r:r%r"r<r<es<����E�6$�L$�
 �
�$�� $��
r%r<c�$�\rSrSrSrS/rSrSrg)�versionmixiniNr
c��XR;a3URcXlgURU:wa[SU-5eg[SU-5e)Nsinconsistent version: %dsunsupported version: %d)�SUPPORTED_VERSIONS�VERSION�RuntimeError)r�versions  r"�
_checkversion�versionmixin._checkversionsR���-�-�-��|�|�#�&������(�"�#>��#H�I�I�)��9�G�C�D�Dr%)r�)r5r6r7r8r�r�r�r9r:r%r"r�r�s���G����Er%r�c��\rSrSrSrS/rSr\RS5r	\RS5r
SrSrSS
jr
SrSrS
rSrg	)�basepackii@r
c��XlXR-UlXR-Ul[
R"UR5RUl[
R"UR5RUl	SUl
SUlUR5 [R"SURS[5SnUR!U5 [R"SURS["5up#UR!U5 SU-(a[%[&U5Ulg[%[*U5Ulg)N�!Br�!BB�)rBrS�packpathrR�	indexpathr[rQrY�	indexsize�datasize�_index�_data�
freememory�struct�unpack�PACKVERSIONSIZEr��INDEXVERSIONSIZE�indexparams�LARGEFANOUTPREFIX�params�SMALLFANOUTPREFIX)rrBr��configs    r"r#�basepack.__init__s����	����.��
�� 0� 0�0���������0�8�8�������
�
�.�6�6��
������
������-�-��t�z�z�2B�?�'C�D�Q�G�����7�#� �-�-�����<M�=M�0N�O������7�#����%�&7��A�D�K�%�&7��A�D�Kr%c��URnUR[[UR-n/n[	SUR
5H8nUS-n[R"SX%US-5SnURU5 M: U$)Nr��!I)	r�r��FANOUTSTART�
fanoutsizer�fanoutcountr�r�rJ)rr��	rawfanout�fanouttabler!�loc�fanoutentrys       r"�_fanouttable�basepack._fanouttable0s�������K�K��k�F�<M�<M�.M�N�	����q�&�,�,�-�A��a�%�C� �-�-��y�s�Q�w�/G�H��K�K����{�+�.��r%c���[R"SURURRS-
5SnURRXR
--$)N�!Q�r)r��unpack_fromr�r��
indexstart�INDEXENTRYLENGTH)r�	nodecounts  r"�	_indexend�basepack._indexend;sT���&�&��4�;�;���� 6� 6�� :�
�
�
�	��{�{�%�%�	�4I�4I�(I�I�Ir%c�n�UR(aOURUR:agURR5 URR5 [URS5n[R"UR5S[RS9UlSSS5 [URS5n[R"UR5S[RS9UlSSS5 SUlg!,(df   Nl=f!,(df   N'=f)z�Unmap and remap the memory to free it up after known expensive
operations. Return True if self._data and self._index were reloaded.
F�rbr)�accessNT)r��_pagedin�
MAXPAGEDIN�closer��openr��mmap�fileno�ACCESS_READr�)r�indexfp�datafps   r"r��basepack.freememoryBs����;�;��}�}�t���.���K�K�����J�J�����$�.�.�$�
'�7��)�)���� �!�D�,<�,<��D�K�(�
�$�-�-��
&�&����6�=�=�?�A�d�>N�>N�O�D�J�'���
��(�
'��
'�
&�s�78D�
8D&�
D#�&
D4c��[5erry)rr�s  r"r~�basepack.getmissingYr|r%Nc��[5erry)rr�r�s   r"r��basepack.markledger\r|r%c��[5erry)rr�s  r"�cleanup�basepack.cleanup_r|r%c��[5erryr+s r"r3�basepack.__iter__br|r%c��[5erryr+s r"�iterentries�basepack.iterentrieser|r%)	r�r�r�r�r�r�r�r�rBr)r5r6r7r8r�r�r#r�
propertycacher�r�r�r~r�r�r3r�r9r:r%r"r�r�sk���J����B�.
������
���J��J��.$�$�$�$�$r%r�c�X�\rSrSrSSjrSrSrSrSrSSjr	S	r
S
rSrSr
S
rg)�mutablebasepackiic�>�URU5 SUl[R"U5nSUlX@l0Ul[R"X5 URURS-S9uUlUlURURS-S9uUlUl[ R""URS5Ul[ R""URS5Ul[$R&"5UlSUlUR-UR/UR55 UR-UR/UR55 [0R2"SUR45nUR7U5 g)NsGZi$s-tmp)�suffixzwb+Fr�)r��_compressor�vfsmodr�
createmode�opener�entriesr�mkstickygroupdir�mkstemprS�packfpr�rR�idxfp�idxpathr[�fdopenr	�sha1�sha�_closed�_fixfilemoder\r�r(r��writeraw)rrA�packdirr�r��
versionbufs      r"r#�mutablebasepack.__init__js8�����7�#� ������G�$��!���������$�$�R�1�%+�^�^��?�?�W�,�&4�&
�"���T�]�$*�>�>��#�#�g�-�$2�$
� ��
�D�L��i�i����U�3����Y�Y�t�z�z�5�1��
��=�=�?������
	���F�K�K��
�
�6�7����F�K�K����5�6�
�[�[�����5�
��
�
�j�!r%c��U$rr:r+s r"�	__enter__�mutablebasepack.__enter__�s���r%c�L�UcUR5 gUR5 gr)r��abort)r�exc_type�	exc_value�	tracebacks    r"�__exit__�mutablebasepack.__exit__�s�����J�J�L��J�J�Lr%c�$�UR5 gr)�_cleantemppacksr+s r"r��mutablebasepack.abort�s�����r%c�p�URRU5 URRU5 gr)r��writer��update)r�datas  r"r��mutablebasepack.writeraw�s$�������$��������r%Nc�>�UR(ag[URR55nURR5 UR
5 [UR5S:XaUR5 SUlgURRURX R-5 URRURX R-5 SUlURR%U5nU(aUR'U5 U$![ a@nURR#X R-5 Ue![ a Uef=fSnAff=f![ a UR5 ef=f)NrT)r�rr��digestr�r��
writeindexrr�rr��renamer�rSr�rRrF�unlinkr\�
addcreated)rr�r�rN�results     r"r��mutablebasepack.close�sO���<�<��	��d�h�h�o�o�'�(�C��K�K�����O�O���4�<�<� �A�%��$�$�&�#�����K�K���t�}�}�c�O�O�.C�D�	
����"�"�4�<�<��7G�7G�1G�H�������!�!�#�&������f�%��
��#�
���K�K�&�&�s�_�_�'<�=�
���	!�����	��
���	�� � �"��	�sN�A=F�2F�2D3�3
E=�>'E'�%E8�'
E5�1E8�4E5�5E8�8E=�=F�Fc���URRUR5 URRUR5 g![a N3f=f![a gf=fr)r�rr�rFr�r+s r"r�mutablebasepack._cleantemppacks�s_��	��K�K���t�}�}�-�	��K�K���t�|�|�,���	��	���	��	�s"�%A�%A�
A�A�
A+�*A+c���[UR5[:�nU(a[[UR
5nO[[UR
5n[/UR-n0nSn[UR5H]nXPR-nXtU'US-
n[R"URUSUR5SnX8[:XdMYXsU'M_ Sn	Sn
UH-nU[:waUOU
nUn
U	[R"SU5-
n	M/ [R"S[UR55nUR!US[U	5-5n
UR#U5 UR$R'U	5 UR$R'U5 UR$R'U
5 UR$R)5 g)Nrr
r%r�r�r
)rr��SMALLFANOUTCUTOFFr�r�r�r��EMPTYFANOUTr�rkr�r�r��fanoutstruct�fanoutprefixr(�createindex�_writeheaderr�rr�)r�largefanoutr�r��	locationsrr�node�location�	fanoutkey�rawfanouttable�last�offset�rawentrieslength�rawindexs              r"r�mutablebasepack.writeindex�s����$�,�,�'�*;�;��� �!2�D�L�L�A�F� �!2�D�L�L�A�F�"�m�f�&8�&8�8���	����4�<�<�(�D��4�4�4�H�&�d�O��Q�J�E��
�
��#�#�T�*?�F�,?�,?�%@����I��%��4�)1�I�&�)�����!�F�%��4�V�$�F��D��f�k�k�%��8�8�N�"�
"�;�;�u�c�$�,�,�.?�@���#�#�I�q�3�~�3F�/F�G�����&�!��
�
����(��
�
���)�*��
�
����"��
�
���r%c��[5erry)r�
nodelocations�indexoffsets   r"r�mutablebasepack.createindex�r|r%c��SnUR[:XaSnURR[R
"SURU55 g)Nrr�r�)rr�r�rr�r(r�)rr�r�s   r"r�mutablebasepack._writeheader�s@��
���#�#�'8�8��F��
�
������V�T�\�\�6�B�Cr%)	r�r�r�r�r�r�r�r�r�)r
r)r5r6r7r8r#r�rr�r�r�rrrrr9r:r%r"r�r�is8�� "�D����#�J�)�V$�Dr%r�c��\rSrSrSrSrSrg)r�i)rrr�r�r�c��XlU[:XaSUlO U[:XaSUlO[	SU-5eSUS--UlUR
S-Ul[UR-UlU=RS-
slg)Nr�s!Hsinvalid fanout prefix size: %sr
r�r�)	rr�rr��
ValueErrorr�r�r�r�)r�
prefixsizer�s   r"r#�indexparams.__init__s���&��
�*�*� %�D��
�,�
,� %�D���>��K�L�L���a��0����*�*�Q�.���%����7������1��r%)r�rr�rr�N)r5r6r7r8�	__slots__r#r9r:r%r"r�r�s���I�r%r�)%�
__future__rrTr@r�r[r�r��mercurial.i18nr�mercurial.noder�	mercurialrrrr��mercurial.utilsr	�r�	importmodrr�r�r�rr�r�rr�rr<r�r�r�r�r:r%r"�<module>r;s���"����	�
������
%��	�	�	�(�	#��
��������
������
��+�+�\Z�Z�z
E�
E� T$�|�T$�nYD�l�YD�x�r%

Youez - 2016 - github.com/yon3zu
LinuXploit