403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.182
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/usr/lib/python3/dist-packages/hgext/largefiles/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�h���z�SrSSKJr SSKJr SSKJr SSKJr SSK	J
r
 SSKJr "S	S
\
5r"SS5rg
)zCbase class for store implementations and store-related utility code�)�annotations)�_)�short)�util)�urlutil�)�lfutilc�*�\rSrSrSrSrSrSrSrg)�
StoreError�zVRaised when there is a problem getting files from or putting
files to a central store.c�4�XlX lX0lX@lg�N)�filename�hash�url�detail)�selfrrrrs     �</usr/lib/python3/dist-packages/hgext/largefiles/basestore.py�__init__�StoreError.__init__s�� �
��	�����c��[S5UR[R"UR5UR
UR4-$)Ns0error getting id %s from url %s for file %s: %s
)rrr�hidepasswordrrr�rs r�longmessage�StoreError.longmessage"sB���E�F��I�I�� � ����*��M�M��K�K�	J
�
�	
rc�`�S[R"UR5UR4-$)Ns%s: %s)rrrrrs r�__str__�StoreError.__str__*s%���G�0�0����:�D�K�K�H�H�Hr)rrrrN)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr�__static_attributes__�rrrrs��!��
�Irrc�H�\rSrSrSrSrSrSrSrSSjr	Sr
S	rS
rg)
�	basestore�.c�(�XlX lX0lgr)�ui�repor)rr+r,rs    rr�basestore.__init__/s�����	��rc��[S5e)z>Put source file into the store so it can be retrieved by hash.�abstract method��NotImplementedError)r�sourcers   r�put�
basestore.put4s��!�"4�5�5rc��[S5e)zxCheck to see if the store contains the given hashes. Given an
iterable of hashes it returns a mapping from hash to bool.r/r0)r�hashess  r�exists�basestore.exists8s��"�"4�5�5rc
���/n/nURnSnURUVVs1sHupgUiM	 snn5nUR[S5[S5[	U5S9n	UH�up�U	RU5 US-
nUR
[S5X�4-5 URU5(dPUR[S5X�[R"UR54-5 URU
5 M�URX�5(aURX�45 M�URU
5 M� SSS5 X#4$s snnf!,(df   X#4$=f)	a�Get the specified largefiles from the store and write to local
files under repo.root.  files is a list of (filename, hash)
tuples.  Return (success, missing), lists of files successfully
downloaded and those not found in the store.  success is a list
of (filename, hash) tuples; missing is a list of filenames that
we could not get.  (The detailed error message will already have
been presented to the user, so missing is just supplied as a
summary.)rsgetting largefilessfiles)�unit�totalrsgetting %s:%s
s'%s: largefile %s not available from %s
N)r+r7�makeprogressr�len�update�note�get�warnrrr�append�_gethash)r�files�success�missingr+�at�	_filenamer�	available�progressrs           rr@�
basestore.get=sH������
�W�W��
���K�K�u� E�u�*;�9��u� E�F�	�
�_�_�
�#�$�1�X�;�c�%�j��
�
�"'�������#��a�������,�-��0@�@�A� �}�}�T�*�*��G�G��E�F�#�7�+?�+?����+I�J�K���N�N�8�,���=�=��0�0��N�N�H�#3�4��N�N�8�,�!#(�
�*�!�!��-!F�
�
�*�!�!�s�E
�%C!E�
E'c��[R"[R"URS55 [R"URU5nUS-n[R
"X@RRRS9nURXQU5nSSS5 WU:waFUS:wa)URR[S5XU4-5 [R"U5 g[R"XC5 [R "URU5 g![a5nURRUR55 SnSnAN�SnAff=f!,(df   N�=f)z�Get file with the provided hash and store it in the local repo's
store and in the usercache.
filename is for informational messages only.
rs.tmp)�
createmodeNs*%s: data corruption (expected %s, got %s)
FT)r�makedirsr	�	storepathr,�atomictempfile�storerM�_getfilerr+rArr�unlink�rename�linktousercache)rrr�
storefilename�tmpname�tmpfile�gothash�errs        rrC�basestore._gethashcs ��
	
�
�
�f�&�&�t�y�y�#�6�7��(�(����D�9�
��'�)��
�
 �
 ��	�	��� :� :�
�
�
��-�-��4�@��	
��d�?��#�~�������D�E��w�/�0��
�K�K�� �����G�+����t�y�y�$�/����
������S�_�_�.�/����
��
�
�s0�E0�D.�.
E-�8+E(�#E0�(E-�-E0�0
E>c�N�URR[S5[U5-5 [	5n/nUH�nUR
UnSUR
5[UR554-nUHxn[R"U5n	U	(dM"Xhn
X�R54nX�;dM>URU5 [R"U
5nURXyU45 Mz M� URX$5n
[U5n[UVVs1sHunnUiM
 snn5nU(a*URR[S5UU4-5 O)URR[S5UU4-5 [!U
5$s snnf)z�Verify the existence (and, optionally, contents) of every big
file revision referenced by every changeset in revs.
Return 0 if all is well, non-zero on any errors.s'searching %d changesets for largefiles
s%d:%ss3verified contents of %d revisions of %d largefiles
s4verified existence of %d revisions of %d largefiles
)r+�statusrr=�setr,�revr�noder	�splitstandin�filenode�add�
readasstandinrB�_verifyfiles�int)r�revs�contents�verified�filestocheckr_�cctx�cset�standinr�fctx�key�expectedhash�failed�numrevs�fname�fnode�	numlfiless                  r�verify�basestore.verify�sn��
	
�����
�9�:�S��Y�F�	
��5�����C��9�9�S�>�D��t�x�x�z�5�����+=�>�>�D���!�.�.�w�7���8��=�D�#�]�]�_�5�C��*� ���S�)�'-�';�';�D�'A��$�+�+�T�\�,J�K� �	��"�"�8�:���h�-���X�>�X�>�E�5��X�>�?�	���G�G�N�N��I�J��I�&�'�
�

�G�G�N�N��J�K��I�&�'�
��6�{���?s�%F!
c��[S5e)z�Fetch one revision of one file from the store and write it
to tmpfile.  Compute the hash of the file on-the-fly as it
downloads and return the hash.  Close tmpfile.  Raise
StoreError if unable to download the file (e.g. it does not
exist in the store).r/r0)rrXrrs    rrR�basestore._getfile����"�"4�5�5rc��[S5e)z�Perform the actual verification of files in the store.
'contents' controls verification of content hash.
'filestocheck' is list of files to check.
Returns _true_ if any problems are found!
r/r0)rrhrjs   rre�basestore._verifyfiles�rzr)r,r+rN)F)
r r!r"r#rr3r7r@rCrvrRrer%r&rrr(r(.s,���
6�6�
$"�L�>&�P6�6rr(N)r$�
__future__r�mercurial.i18nr�mercurial.noder�	mercurialr�mercurial.utilsr�r	�	Exceptionrr(r&rr�<module>r�s;��J�"�� ����I��I�,J6�J6r

Youez - 2016 - github.com/yon3zu
LinuXploit