HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/thread-self/root/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyo
�
1�3\c@@s�dZddlmZddlmZddlmZmZddlm	Z	ddl
mZmZm
Z
ejZejZdejfd	��YZd
S(s4remote largefile store; the base class for wirestorei(tabsolute_import(t_(terrortutil(t
stringutili(t	basestoretlfutilt
localstoretremotestorecB@sheZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�ZRS(s)a largefile store accessed over a networkcC@sYtt|�j|||�d|_|dk	rUtj|j|j|j�|_ndS(N(tsuperRt__init__tNonet_lstoreRtuitrepo(tselfR
Rturl((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyR
 s	cC@sp|j||�r@tjtd�|tj|j�f��n|jjtd�|tj|j�f�dS(Ns0remotestore: could not put %s to remote store %ss'remotestore: put %s to remote store %s
(	tsendfileRtAbortRRthidepasswordRR
tdebug(Rtsourcethash((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pytput&s			cC@s#td�|j|�j�D��S(Ncs@s'|]\}}||dkfVqdS(iN((t.0thts((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pys	<genexpr>0s(tdictt_statt	iteritems(Rthashes((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pytexists/s	cC@s�|jjd||f�y2tj|j|��}|j||�SWdQXWn;tk
r�}tjtd�|t	j
|�f��nXdS(Nsremotestore: sendfile(%s, %s)
s'remotestore: could not open file %s: %s(R
RRthttpsendfilet_puttIOErrorRRRRtforcebytestr(RtfilenameRtfdte((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyR3s	cC@s�y|j|�}Wn�tjk
rO}tj|||jtj|���nttjk
r�}t	j
dtj|j�|j
f��n7tk
r�}tj|||jtj|���nXtj||�S(Ns%s: %s(t_getturlerrt	httperrorRt
StoreErrorRRR#turlerrorRRRRtreasonR"Rtcopyandhash(RttmpfileR$RtchunksR&((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyt_getfile=s	"cC@s9|jj|�}g|D]}||r|^q}|S(N(RR(RRtexistslocallymapRtlocalhashes((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyt_hashesavailablelocallyQs#c
C@sUt}g|D]\}}}|^q
}|j|�}|jg|D]}||krD|^qD�}	x�|D]�\}}}||kr�|||f}
|jj||
g�}|rMt}qMql|	|}|rl|dkr|jjtd�||f�t}qM|dkr:|jjtd�||f�t}qMt	d|��qlqlW|S(Nis"changeset %s: %s: contents differ
ischangeset %s: %s missing
s6verify failed: unexpected response from statlfile (%r)(
tFalseR3RRt_verifyfilestTrueR
twarnRtRuntimeError(
RtcontentstfilestochecktfailedtcsetR$texpectedhashtexpectedhashesR2tstatstfiletochecktverifyresulttstat((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyR5Vs8
						cC@std��dS(s1Put file with the given hash in the remote store.sabstract methodN(tNotImplementedError(RRR%((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyR!wscC@std��dS(s/Get a iterator for content with the given hash.sabstract methodN(RC(RR((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyR'{scC@std��dS(s�Get information about availability of files specified by
        hashes in the remote store. Return dictionary mapping hashes
        to return code where 0 means that file is available, other
        values if not.sabstract methodN(RC(RR((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyRs(
t__name__t
__module__t__doc__R
RRRR0R3R5R!R'R(((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyRs					
			!		N(RFt
__future__Rtmercurial.i18nRt	mercurialRRtmercurial.utilsRtRRRR(turlreqR(((sB/usr/lib64/python2.7/site-packages/hgext/largefiles/remotestore.pyt<module>s