MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib64/python2.7/site-packages/hgext/largefiles/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //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

MMCT - 2023