-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/hgext/largefiles/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyc

ó
Ì\,Tc@sÕddlZddlZddlZddlmZmZmZmZddlm	Z	ddl
Z
dZdZ
dZdZd„Zd„Zd„Zd„Zd	„Zd
„Zd„ZejdƒZd
„ZdS(iÿÿÿÿN(terrorthttppeertutilt	wireproto(t_sa
This repository uses the largefiles extension.

Please enable it in your Mercurial config file.
cCs|jƒtj||ƒ}tjtjj|ƒƒtj|d|j	j
ƒ}z²yk|j|ƒ|jj
dƒ|tj|jƒkr£tdtdƒƒ‚n|jƒtj||ƒWn@tk
r}|jjtdƒ||jfƒtjdƒSXWd|jƒXtjdƒS(sLPut a largefile into a repository's local store and into the
    user cache.t
createmodeis$largefile contents do not match hashs,largefiles: failed to put %s into store: %s
iN(tredirecttlfutilt	storepathRtmakedirstostpathtdirnametatomictempfiletstoreRtgetfilet_fptseekthexsha1tIOErrorRtclosetlinktousercachetuitwarntstrerrorRtpushrestdiscard(trepotprototshaRttmpfpte((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pytputlfiles$


cs~tj||ƒ}|s4tjtdƒ|ƒ‚nt|dƒ‰tjˆjƒƒd‰‡‡fd†}t	j
|ƒƒS(sIRetrieve a largefile from the repository-local cache or system
    cache.s+requested largefile %s not present in cachetrbic3s,dˆVxtjˆƒD]}|VqWdS(Ns%d
(Rt
filechunkiter(tchunk(tftlength(s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt	generator@s	(RtfindfileRtAbortRtopenR
tfstattfilenoRt	streamres(RRRtfilenameR&((R$R%s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pytgetlfile2scCs tj||ƒ}|sdSdS(sReturn '2
' if the largefile is missing, '0
' if it seems to be in
    good condition.

    The value 1 is reserved for mismatched checksum, but that is too expensive
    to be verified on every stat and must be caught be running 'hg verify'
    server side.s2
s0
(RR'(RRRR-((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt	statlfileFscCs&d|jfd„ƒY}||_dS(NtlfileswirerepositorycBs,eZd„Zd„Zejd„ƒZRS(c
Sskt|jtjƒr×d}y|jdd|d|didd6ƒ}|jddƒ\}}x0|jtƒD]}|jj	t
d	ƒ|ƒqnWt|ƒSWqgtt
jfk
rÓ|jj	t
d
ƒ|ƒdSXnyS|jd|d|ƒ\}}|dkrtjt
dƒ|ƒ‚nt|ƒSWn:tk
r>dStk
rftjt
d
ƒ|ƒ‚nXdS(NR tdataRtheaderssapplication/mercurial-0.1scontent-types
isremote: s!unexpected putlfile response: %r
tsputlfile failed:s&putlfile failed (unexpected response):(t
issubclasst	__class__RtNonet_calltsplitt
splitlinestTrueRRRtintt
ValueErrorturllib2t	HTTPErrort	_callpushRt
ResponseErrorR(tselfRtfdtrestdtoutputtltret((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyR Ts.

cssÜ|jdd|ƒ}|jƒ}yt|ƒ}Wn0tk
rc|jtjtdƒ|ƒƒnXx"tj	|d|ƒD]}|VqzWt
|jtjƒrØ|j
dƒ}|rØ|jtjtdƒ|ƒƒqØndS(	s<returns an iterable with the chunks of the file with sha shaR.Rsunexpected response:i€iiNi(t_callstreamtreadlineR;R<t_abortRR@RRR"R4R5Rtread(RARtstreamR%R#((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyR.ts
	css\tjƒ}i|d6}||fVyt|jƒVWnttjfk
rWdVnXdS(NRi(RtfutureR;tvalueR<R=R>(RARR$tresult((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyR/‰s
(t__name__t
__module__R R.Rt	batchableR/(((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyR0Ss	 	(R5(RRR0((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt
wirereposetupRsDcCst||ƒdS(Ns largefiles=serve(tcapabilitiesorig(RR((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pytcapabilitiesšscCs,tj|ƒrtjtƒStj||ƒS(N(RtislfilesrepoRtooberrortLARGEFILES_REQUIRED_MSGtheads(RR((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyRYs
cKsl|dkr$|jdƒr$d}n|dkr\|jdƒr\|djddƒ|d<nt|||S(NRYt
largefilestlheadstbatchtcmdssheads slheads (tcapabletreplacetssholdcallstream(RAtcmdtargs((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pytsshrepocallstream¢s
	s(^|;)heads\bcKsl|dkr$|jdƒr$d}n|dkr\|jdƒr\tjd|dƒ|d<nt|||S(NRYRZR[R\R](R^theadsretsubthttpoldcallstream(RARaRb((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pythttprepocallstream«s
	(R
R=tret	mercurialRRRRtmercurial.i18nRRRXR6RTR`RfR R.R/RSRURYRctcompileRdRg(((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt<module>s$"				H			

Copyright © 2017 || Recoded By Mr.Bumblebee