-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyc

ó
làÁ\c@s‚ddlZddlmZddlZddlZddlZdefd„ƒYZd„Zdej	fd„ƒYZ
e
ZdS(iÿÿÿÿN(t_t
remotelockcBs#eZd„Zd„Zd„ZRS(cCs
||_dS(N(trepo(tselfR((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt__init__
scCs|jjƒd|_dS(N(RtunlocktNone(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pytreleases
cCs|jr|jƒndS(N(RR(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt__del__s	(t__name__t
__module__RRR(((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRs		cCs4|s
|Stjd|ƒr |Sd|jddƒS(Ns[a-zA-Z0-9@%_+=:,./-]*$s'%s't's'\''(tretmatchtreplace(ts((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_serverquotes
tsshpeercBs°eZed„Zd„Zd„Zd„Zd„Zd„Zd„Z	e	Z
d„Zd„Zd	„Z
d
„Zd„Zd„Zed
„Zd„Zd„Zdd„ZRS(c
Csñ||_||_d|_|_|_tj|dtdtƒ}|j	dksl|j
sl|jdkr|jt
jtdƒ|ƒƒntj|ƒ|j|_|jdk	rÖ|jt
jtdƒƒƒn|j
|_
|j|_|jpúd|_|jjdddƒ}|jjddd	ƒ}tj||j
|j|jƒ}|rÚd
||tjdt|ƒt|jƒfƒf}|jd|ƒtj|ƒ}	|	d
krÚ|jt
jtdƒƒƒqÚn|j|||ƒdS(Nt
parsequeryt
parsefragmenttsshscouldn't parse location %sspassword in URL not supportedt.tuit	remotecmdthgs%s %s %ss
%s init %ssrunning %s
iscould not create remote repo(t_urlRRtpipeotpipeitpipeetutilturltFalsetschemethosttpatht_abortterrort	RepoErrorRtchecksafesshtusertpasswdtporttconfigtsshargst
shellquoteRtdebugtsystemt
_validaterepo(
RRR"tcreatetutsshcmdRtargstcmdtres((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRs2		(#
!		#"cCs|jS(N(R(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRAsc	CsÌ|jƒd||tjdt|ƒt|jƒfƒf}|jjd|ƒtj|ƒ}tj|ƒ\|_	|_
|_|_|j
dƒ|j
ddddd	dd	fƒ}d
dg}d}x™|d
rN|rN|jƒ}|jƒ|d
dkr|dkrPn|r4|jjd|ƒn|j|ƒ|d8}qÒW|jtjtdƒƒƒtƒ|_xNt|ƒD]@}|jdƒr„|jj|d
 jdƒdjƒƒPq„q„WdS(Ns%s %s %ss%s -R %s serve --stdiosrunning %s
thellotbetweentpairss%s-%st0i(ttdummyiôiÿÿÿÿs1
s
sremote: is#no suitable response from remote hgs
capabilities:t:(tcleanupRR,RR"RR-tquotecommandtpopen4RRRt
subprocesst_callstreamtreadlinetreaderrtappendR#R$R%Rtsett_capstreversedt
startswithtupdatetsplit(	RR2R3RR4trtlinest	max_noisetl((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR/Ds4
		#'
'

'cCs|jS(N(RF(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt
_capabilitiesjscCs…x~tr€tj|jƒj}|dkr.Pn|jj|ƒ}|sJPnx0|jƒD]"}|jjt	dƒ|dƒqWWqWdS(Nisremote: s
(
tTrueRtfstatRtst_sizetreadt
splitlinesRtstatusR(RtsizeRRN((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRCms	cCs|jƒ|‚dS(N(R=(Rt	exception((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR#xs
cCs‰|jdkrdS|jjƒ|jjƒy1x*|jD]}|jjtdƒ|ƒq:WWntt	fk
rwnX|jjƒdS(Nsremote: (
RRtcloseRRRRURtIOErrort
ValueError(RRN((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR=|s

!cKsS|jjd|ƒ|jjd|ƒtj|\}}|jƒ}i}x=|D]5}|dkrt||d<PqT||||<||=qTWx¯t|jƒƒD]›\}}|jjd|t	|ƒfƒt
|tƒr+x]|jƒD]<\}	}
|jjd|	t	|
ƒfƒ|jj|
ƒqèWq |jj|ƒq W|jjƒ|j
S(Nssending %s command
s%s
t*s%s %d
(RR-Rtwritet	wireprototcommandsRJtsortedt	iteritemstlent
isinstancetdicttflushR(RR4R3t_functnamestkeystwireargstktvtdktdv((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRA‹s(

  
cKs|j||S(N(RA(RR4R3((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_callcompressable¤scKs|j|||jƒS(N(RAt_recv(RR4R3((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_call§scKs”|j||}|r"d|fSx0trT|jdƒ}|sDPn|j|ƒq%W|jddtƒ|jƒ}|r„d|fS|jƒdfS(NR:iRd(RoRPRSt_sendRn(RR4tfpR3RKtd((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt	_callpush«s
	
cKs{|j||}|r.tjd|ƒ‚nx0tr`|jdƒ}|sPPn|j|ƒq1W|jddtƒ|jS(Nsunexpected remote reply: %siR:Rd(RoRtAbortRPRSRpR(RR4RqR3RKRr((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_calltwowaystreamºs	cCsú|jjƒ}|dkrg}x9tr\|jjƒ}|dkrIPn|j|gƒq$Wt|ƒdkr„|dd |d<n|jtj|Œƒn|j	ƒyt
|ƒ}Wn0tk
ré|jtjt
dƒ|ƒƒnX|jj|ƒS(Ns
s-
iiÿÿÿÿsunexpected response:(RRBRPRtextendRaR#R$tOutOfBandErrorRCtintRZt
ResponseErrorRRS(RRNterrtline((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRnÇs"	

#cCsW|jjdt|ƒƒ|r3|jj|ƒn|rI|jjƒn|jƒdS(Ns%d
(RR\RaRdRC(RtdataRd((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRpÛscCs|jdƒt|ƒS(Ntlock(RoR(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR}ãs
cCs|jdƒdS(NR(Ro(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRçscCsê|jdƒ}|r8|jtjtdƒ|ƒƒnx=trw|jdƒ}|sZPn|jj|ƒ|j	ƒq;W|jj
ƒ|j	ƒ|jƒ}|s¥dSyt|ƒSWn0t
k
rå|jtjtdƒ|ƒƒnXdS(s”Send a changegroup to the remote server.  Return an integer
        similar to unbundle(). DEPRECATED, since it requires locking the
        remote.taddchangegroupspush refused: %siisunexpected response:N(RoR#R$R%RRPRSRR\RCRdRnRxRZRy(RtcgtsourceRR}RrRK((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR~ês$#	


N(R	R
RRRR/RORCR#R=RRARmRoRsRuRnRpR}RRR~(((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRs$"		&				
					
			(Rti18nRRR$R]tobjectRRtwirepeerRtinstance(((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt<module>s$
	å

Copyright © 2017 || Recoded By Mr.Bumblebee