³ò ø$•Jc@sddklZlZlZddklZddkZddkZddkZddk Z ddk Z ddk Z ddk Z ddk Z ddkZddkZddkZddkZddkZddkZd„Zdeifd„ƒYZdefd„ƒYZd „ZdS( iÿÿÿÿ(tbinthextnullid(t_Nccsutiƒ}y,x%ti|ƒD]}|i|ƒVqWWn+tij otdt dƒƒ‚nX|i ƒVdS(Nsconnection ended unexpectedly( tzlibt decompressobjtutilt filechunkitert decompressthttplibt HTTPExceptiontIOErrortNoneRtflush(tftzdtchunk((s%/sys/lib/python/mercurial/httprepo.pyt zgenerators thttprepositorycBs¤eZd„Zd„Zd„Zd„ZeeƒZd„Zd„Z d„Z d„Z d„Z d „Z d „Zd „Zd „Zd „Zd„Zd„ZRS(c CsÂ||_d|_d|_ti|ƒ\}}}}}|p|o$titdƒ|p|ƒ‚nt i |ƒ\|_ }||_ |i i tdƒ|i ƒt i||ƒ|_dS(Nsunsupported URL component: "%s"s using %s (tpathR tcapsthandlerturlparseturlsplitRtAbortRturlt getauthinfot_urltuitdebugtopenert urlopener( tselfRRtschemetnetlocturlpathtquerytfragtauthinfo((s%/sys/lib/python/mercurial/httprepo.pyt__init__s    cCsCx<|iiD].}|iƒt|dƒo|iƒq q WdS(Nt close_all(RthandlerstclosethasattrR((R th((s%/sys/lib/python/mercurial/httprepo.pyt__del__*s   cCs|iS(N(R(R ((s%/sys/lib/python/mercurial/httprepo.pyR0scCs’|idjo{y"t|idƒiƒƒ|_Wn"tij otƒ|_nX|iit dƒdi |ipdgƒƒn|iS(Nt capabilitiesscapabilities: %s t tnone( RR tsettdo_readtsplitterrort RepoErrorRRRtjoin(R ((s%/sys/lib/python/mercurial/httprepo.pytget_caps5s""cCstitdƒƒ‚dS(Ns!operation not supported over http(RRR(R ((s%/sys/lib/python/mercurial/httprepo.pytlockAscKsx|iddƒ}|idhƒ}|iitdƒ|ƒh|d<}|i|ƒdti|ƒ}d|i|f}yP|o$|iitdƒt |ƒƒn|i i t i |||ƒƒ}Wn¸t ij o5} | idjotitd ƒƒ‚n‚nvtij o?} |iitd ƒ|ƒ|iiƒtd| ƒ‚n)tj otitd ƒƒ‚nX|iƒ} | i|ƒo| t |ƒ } n|i| jo'|iitd ƒ| ƒ| |_ny|id ƒ} Wn tj o|id } nXti|iƒ} | idƒp| idƒp | idƒp@|iitdƒti|ƒƒt i!tdƒ| ƒ‚n| idƒo¹yP| i"ddƒd} t#g}| i"dƒD]}|t$|ƒqë~ƒ}Wn2t%j o&t i!tdƒ| | fƒ‚nX|djo#t i!tdƒ| | fƒ‚qtn|S(Ntdatatheadersssending %s command tcmds?%ss%s%sssending %s bytes i‘sauthorization faileds$http error while sending %s command s,http error, possibly caused by proxy settingsreal URL is %s s content-typesapplication/mercurial-s text/plainsapplication/hg-changegroupsrequested URL: '%s' s+'%s' does not appear to be an hg repositoryt-it.s+'%s' sent a broken Content-Type header (%s)is'%s' uses newer protocol %s(ii(&tpopR RRRtupdateturllibt urlencodeRtlenRtopenturllib2tRequestt HTTPErrortcodeRRR R t tracebackR t IndexErrortgeturltendswithtstatust getheadertAttributeErrorR:Rt hidepasswordt startswithR4R5R3ttupletintt ValueError(R R;targsR9R:tqtqstcutresptinsttresp_urltprototsafeurltversiont_[1]tnt version_info((s%/sys/lib/python/mercurial/httprepo.pytdo_cmdDsb $%   #: cKs2|i||}z|iƒSWd|iƒXdS(N(RatreadR*(R R;RTtfp((s%/sys/lib/python/mercurial/httprepo.pyR2}scCs{|idtdƒƒ|idd|ƒiƒ}|d iddƒ\}}t|ƒot|ƒSnti|ƒ‚dS(Ntlookupslook up remote revisiontkeyiÿÿÿÿR/i( t requirecapRRaRbR3RRRR4R5(R RetdtsuccessR9((s%/sys/lib/python/mercurial/httprepo.pyRd…s  cCsS|idƒ}ytt|d idƒƒSWntitdƒ|ƒ‚nXdS(NtheadsiÿÿÿÿR/sunexpected response:(R2tmapRR3R4t ResponseErrorR(R Rg((s%/sys/lib/python/mercurial/httprepo.pyRis c Cs±|idƒ}y|h}xk|iƒD]]}|idƒ}ti|dƒ}g}|dD]}|t|ƒq\~}||| sHH ×