-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
Ì\,Tc@smdZddlZddlmZmZddlmZddlZddlZdejfd„ƒYZ	dS(s4remote largefile store; the base class for wirestoreiÿÿÿÿN(tutilt	wireproto(t_tremotestorecBsMeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(s)a largefile store accessed over a networkcCs tt|ƒj|||ƒdS(N(tsuperRt__init__(tselftuitrepoturl((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pyRscCsp|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
(tsendfileRtAbortRthidepasswordR	Rtdebug(Rtsourcethash((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pytputs			cCs#td„|j|ƒjƒDƒƒS(Ncss'|]\}}||dkfVqdS(iN((t.0thts((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pys	<genexpr> s(tdictt_statt	iteritems(Rthashes((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pytexistss	cCs£|jjd||fƒd}zhytj|j|ƒ}Wn8tk
rv}tjtdƒ|t	|ƒfƒ‚nX|j
||ƒSWd|rž|jƒnXdS(Nsremotestore: sendfile(%s, %s)
s'remotestore: could not open file %s: %s(RR
tNonetlfutilthttpsendfiletIOErrorRRRtstrt_puttclose(RtfilenameRtfdte((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pyR
#s	cCsÍy|j|ƒ}Wn§tjk
rL}tj|||jt|ƒƒ‚nqtjk
r‰}tj	dtj
|jƒ|jfƒ‚n4tk
r¼}tj|||jt|ƒƒ‚nXt
j||ƒS(Ns%s: %s(t_getturllib2t	HTTPErrort	basestoret
StoreErrorR	RtURLErrorRRRtreasonRRtcopyandhash(RttmpfileR RtchunksR"((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pyt_getfile2s$	"%cCsùtj|ƒ}|stS||}||jƒf}||krEtS|j|ƒ|jƒdd!}	|j|	gƒ|	}
|
s…tS|
dkrµ|jjt	dƒ||fƒt
S|
dkrå|jjt	dƒ||fƒt
Std|
ƒ‚dS(Nii(is"changeset %s: %s: contents differ
ischangeset %s: %s missing
s6verify failed: unexpected response from statlfile (%r)(RtsplitstandintFalsetfilenodetaddtdataRRtwarnRtTruetRuntimeError(RtcctxtcsettcontentststandintverifiedR tfctxtkeyt
expecthashtstat((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pyt_verifyfileDs0

				cCs
tj|ƒS(sSupport for remote batching.(Rtremotebatch(R((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pytbatchas(
t__name__t
__module__t__doc__RRRR
R-R?RA(((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pyRs							(
RDR$t	mercurialRRtmercurial.i18nRRR&R(((s@/usr/lib/python2.7/dist-packages/hgext/largefiles/remotestore.pyt<module>s

Copyright © 2017 || Recoded By Mr.Bumblebee