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: //usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyo
�
1�3\c@@sddlmZddlZddlmZddlmZmZmZm	Z	m
Z
mZmZm
Z
mZe
jZe
jZdefd��YZdefd	��YZd
ejfd��YZd�Zd
ejfd��YZdejejfd��YZddd�ZdS(i(tabsolute_importNi(t_(	t	changelogterrort	localrepotmanifestt
namespacestpathutilturltutiltvfsthttprangereadercB@sSeZd�Zd�Zd�Zd�Zdd�Zd�Zd�Z	d�Z
RS(	cC@s(||_d|_||_||_dS(Ni(Rtpostopenertname(tselfRR
((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyt__init__s			cC@s|S(N((R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyt	__enter__&scC@s|j�dS(N(tclose(Rtexc_typet	exc_valuet	traceback((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyt__exit__)scC@s
||_dS(N(R(RR((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pytseek,sc	C@setj|j�}d}|r2|j|d}n|jsA|ra|jdd|j|f�ny+|jj|�}|j�}|j}Wnnt	j
k
r�}|jdkr�tjp�d}t||��n,t	jk
r�}td|jd��nX|dkr9|r)||j|j|!}qL||j}n|rL|| }n|jt|�7_|S(NtitRangesbytes=%d-%si�i�(turlreqtrequestRRt
add_headerR
topentreadtcodeturlerrt	httperrorterrnotENOENTtNonetIOErrorturlerrortreasontlen(	RtbytestreqtendtftdataRtinsttnum((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyR.s. 

cC@s|j�jt�S(N(Rt
splitlinestTrue(R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyt	readlinesKscC@st|j��S(N(titerR2(R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyt__iter__MscC@sdS(N((R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyROsN(t__name__t
__module__RRRRR$RR2R4R(((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyRs						t_RangeErrorcB@seZdZRS(s6Error raised when an unsatisfiable range is requested.(R5R6t__doc__(((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyR7Ust_HTTPRangeHandlercB@s eZdZd�Zd�ZRS(sHandler that enables HTTP Range headers.

    This was extremely simple. The Range header is a HTTP feature to
    begin with so all this class does is tell urllib2 that the
    "206 Partial Content" response from the HTTP server is what we
    expected.
    cC@s1tj|||j��}||_||_|S(N(Rt
addinfourltget_full_urlRtmsg(RR*tfpRR<thdrstr((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pythttp_error_206as		cC@std��dS(NsRequested Range Not Satisfiable(R7(RR*R=RR<R>((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pythttp_error_416hs(R5R6R8R@RA(((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyR9Xs	c@sEtj||���jt��dtjf�fd��Y}|S(Nt
statichttpvfsc@s,eZd�Zd�fd�Zd�ZRS(cS@s
||_dS(N(tbase(RRC((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyRrsR?c@sI|dkrtd��ndj|jtj|�f�}t|��S(NR?trbsPermission deniedt/(R?RD(R%tjoinRCRtquoteR(RtpathtmodetargstkwR,(t	urlopener(s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyt__call__us!cS@s$|rtj|j|�S|jSdS(N(RRFRC(RRH((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyRF{s(R5R6RRMRF((RL(s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyRBqs	(RR
tadd_handlerR9tvfsmodtabstractvfs(tuitauthinfoRB((RLs>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pytbuild_openerlststatichttppeercB@seZd�Zd�ZRS(cC@sdS(N(R$(R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pytlocal�scC@stS(N(tFalse(R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pytcanpush�s(R5R6RURW(((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyRT�s	tstatichttprepositorycB@sbeZejjZd�Zd�Zd�Zd�Z	d�Z
ed�Zed�Z
d�ZRS(cC@s�||_||_||_tj|jd�d�}|j�\|_}t||�}||j�|_	||j	j
d��|_g|_t
j
�|_d|_y"t|j	jd�j��}Wn�tk
rx}|jtjkr��nt�}y*|j	d�}|jd�|j�Wqytk
rt}|jtjkrR�ntd�|}	tj|	��qyXnXtj|�}
tj||
�tj||�tj||j|�|_ |j j|_!|j j"|_#|j j
|_$i|_%||_&t'j(|j#�}t'j)|j#||�|_)t*j*|j#�|_*d|_+d|_,i|_-d|_.d|_/d|_0d|_1dS(NREs/.hgtcachetrequiress
00changelog.iis+'%s' does not appear to be an hg repository(2t_urlRQtrootR	RtrstripRRRHRSR
RFtcachevfst_phasedefaultsRtnamesR$t
filternametsetRR0R%R"R#RRRt	RepoErrorRtgathersupportedrequirementstensurerequirementsrecognizedtensurerequirementscompatiblet	makestoretstoretspathR
tsvfstsjoint
_filecachetrequirementsRtmanifestrevlogtmanifestlogRt_tagst
nodetagscachet
_branchcachest_revbranchcachet
encodepatst
decodepatst	_transref(RRQRHtuRRtvfsclassRmR.R=R<tsupportedrequirementstrootmanifest((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyR�s\					"	
									cC@s(tt|�j|�}|jdg�S(Ntpushkey(tsuperRXt_restrictcapabilitiest
difference(Rtcaps((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyR}�scC@s|jS(N(R[(R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyR�scC@stS(N(RV(R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyRU�scC@s
t|�S(N(RT(R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pytpeer�scC@s(tjdtd�dtd���dS(Nislock not availabletlocks"cannot lock static-http repository(RtLockUnavailableR(Rtwait((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pytwlock�scC@stjtd���dS(Ns"cannot lock static-http repository(RtAbortR(RR�((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyR��scC@sdS(N((R((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyt_writecaches�s(R5R6Rtlocalrepositoryt_basesupportedt	supportedRR}RRUR�R1R�R�R�(((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyRX�s	;				cC@s/|rtjtd���nt||d�S(Ns(cannot create new static-http repositoryi(RR�RRX(RQRHtcreatetintentst
createopts((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pytinstance�s( t
__future__RR"ti18nRRRRRRRRRR	R
ROR RtobjectRR%R7tbasehandlerR9RSt	localpeerRTR�trevlogfilestorageRXR$R�(((s>/usr/lib64/python2.7/site-packages/mercurial/statichttprepo.pyt<module>
s@		7		U