HEX
Server: Apache
System: Linux shared178.accountservergroup.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User: somesolu (2995)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: //usr/lib64/python2.7/site-packages/hgext/largefiles/localstore.pyc
�
Hq�Qc@sKdZddlmZddlZddlZdejfd��YZdS(s store class for local filesystemi����(t_Nt
localstorecBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(s�localstore first attempts to grab files out of the store in the remote
    Mercurial repository.  Failing that, it attempts to grab the files from
    the user cache.cCs8|j�|_tt|�j|||jj��dS(N(tlocaltremotetsuperRt__init__turl(tselftuitrepoR((sA/usr/lib64/python2.7/site-packages/hgext/largefiles/localstore.pyRscCs<tj|j|�rdStj|tj|j|��dS(N(tlfutiltinstoreRtlinkt	storepath(Rtsourcethash((sA/usr/lib64/python2.7/site-packages/hgext/largefiles/localstore.pytputscCs4i}x'|D]}tj|j|�||<q
W|S(N(R
RR(RthashestretvalR((sA/usr/lib64/python2.7/site-packages/hgext/largefiles/localstore.pytexistss
cCsttj|j|�}|s?tj|||jtd���nt|d�}ztj||�SWd|j	�XdS(Nscan't get file locallytrb(
R
tfindfileRt	basestoret
StoreErrorRRtopentcopyandhashtclose(RttmpfiletfilenameRtpathtfd((sA/usr/lib64/python2.7/site-packages/hgext/largefiles/localstore.pyt_getfile%scCstj|�}|stS||}||j�f}||krEtS|j�dd!}	tj|j|	�}
|j|�tj|j|	�s�|j	j
td�|||
f�tS|rtj
|
�}||	kr|j	j
td�|||
f�tSntS(Nii(s'changeset %s: %s references missing %s
s)changeset %s: %s references corrupted %s
(R
tsplitstandintFalsetfilenodetdataR
RtaddRRtwarnRtTruethashfile(RtcctxtcsettcontentststandintverifiedRtfctxtkeyt
expecthashR
t
actualhash((sA/usr/lib64/python2.7/site-packages/hgext/largefiles/localstore.pyt_verifyfile0s.

				(t__name__t
__module__t__doc__RRRRR1(((sA/usr/lib64/python2.7/site-packages/hgext/largefiles/localstore.pyRs				(R4tmercurial.i18nRR
RR(((sA/usr/lib64/python2.7/site-packages/hgext/largefiles/localstore.pyt<module>	s