HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyc
ó
x7_c@@s©ddlmZddlZddlmZddlmZmZmZde	fd„ƒYZ
d„Zd	„Zd
e	fd„ƒYZ
dejfd
„ƒYZeZdS(i(tabsolute_importNi(t_(terrortutilt	wireprotot
remotelockcB@s5eZd„Zd„Zd„Zd„Zd„ZRS(cC@s
||_dS(N(trepo(tselfR((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt__init__scC@s|jjƒd|_dS(N(RtunlocktNone(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pytreleases
cC@s|S(N((R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt	__enter__scC@s|jr|jƒndS(N(RR(Rtexc_typetexc_valtexc_tb((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt__exit__s	cC@s|jr|jƒndS(N(RR(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt__del__s	(t__name__t
__module__RRRRR(((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRs
				cC@s4|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_serverquote"s
cC@sLtj|ƒ}|rHx0|jƒD]}|jtdƒ|dƒq"WndS(sYdisplay all data currently available on pipe as remote output.

    This is non blocking.sremote: s
N(Rtreadpipet
splitlineststatusR(tuitpipeRtl((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_forwardoutput*st
doublepipecB@sYeZdZd„Zd„Zd„Zd„Zd„Zd	d„Z	d„Z
d„ZRS(
s4Operate a side-channel pipe in addition of a main one

    The side-channel pipe contains server output to be forwarded to the user
    input. The double pipe will behave as the "main" pipe, but will ensure the
    content of the "side" pipe is properly processed while we wait for blocking
    call on the "main" pipe.

    If large amounts of data are read from "main", the forward will cease after
    the first bytes start to appear. This simplifies the implementation
    without affecting actual output of sshpeer too much as we rarely issue
    large read for data not yet emitted by the server.

    The main pipe is expected to be a 'bufferedinputpipe' from the util module
    that handle all the os specific bites. This class lives in this module
    because it focus on behavior specific to the ssh protocol.cC@s||_||_||_dS(N(t_uit_maint_side(RRtmaintside((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRDs		cC@s’t|jdtƒrttfS|jjƒ|jjƒg}ytj|ƒ}Wntk
ri|}nX|jjƒ|k|jjƒ|kfS(sÉwait until some data are available on main or side

        return a pair of boolean (ismainready, issideready)

        (This will only wait for data if the setup is supported by `util.poll`)
        t	hasbuffer(	tgetattrR#tFalsetTruetfilenoR$RtpolltNotImplementedError(Rtfdstact((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_waitIs


cC@s|jd|ƒS(Ntwrite(t_call(Rtdata((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR1ZscC@s|jd|ƒS(Ntread(R2(Rtsize((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR4]scC@s
|jdƒS(Ntreadline(R2(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR6`scC@s­|dk	r|s|jjr6t|j|jƒdSxptr¨|jƒ\}}|rmt|j|jƒn|r9t|j|ƒ}|dkr˜|ƒS||ƒSq9q9WdS(sKcall <methname> on "main", forward output of "side" while blocking
        tN(	R
R#tclosedR R"R$R*R0R((RtmethnameR3t	mainreadyt	sidereadytmeth((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR2cs	cC@s
|jjƒS(N(R#tclose(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR=uscC@s
|jjƒS(N(R#tflush(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR>xsN(RRt__doc__RR0R1R4R6R
R2R=R>(((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR!3s						tsshpeercB@sÂeZed„Zd„Zd„Zd„Zd„Zd„Zd„Z	e	Z
d„Zd„Zd	„Z
d
„Zd„Zd„Zd
„Zd„Zed„Zd„Zd„Zdd„ZRS(c
C@sñ||_||_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|ƒ|j|ƒ}	|	d
krÚ|jt
jtdƒƒƒqÚn|j|||ƒdS(Nt
parsequeryt
parsefragmenttsshscouldn't parse location %sspassword in URL not supportedt.Rt	remotecmdthgs%s %s %ss
%s init %ssrunning %s
iscould not create remote repo(t_urlRR
tpipeotpipeitpipeeRturlR)tschemethosttpatht_abortRt	RepoErrorRtchecksafesshtusertpasswdtporttconfigtsshargst
shellquoteRtdebugtsystemt
_validaterepo(
RRRNtcreatetutsshcmdREtargstcmdtres((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR|s2		(#
!		#"cC@s|jS(N(RG(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRKžsc
C@s)|jƒd||tjdt|ƒt|jƒfƒf}|jjd|ƒtj|ƒ}tj|ddƒ}|\|_	|_
|_|_tj
|j
ƒ|_
t|j|j
|jƒ|_
t|j|j	|jƒ|_	|jdƒ|jddd	d
dd
dfƒ}dd
g}d}x™|dr«|r«|jƒ}	|jƒ|ddkru|	dkruPn|	r‘|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
tbufsizeithellotbetweentpairss%s-%st0i(R7tdummyiôiÿÿÿÿs1
s
sremote: is#no suitable response from remote hgs
capabilities:t:(tcleanupRRWRRNRRXtquotecommandtpopen4RHRIRJt
subprocesstbufferedinputpipeR!t_callstreamR6treaderrtappendRORRPRtsett_capstreversedt
startswithtupdatetsplit(
RR]R^RER_tsubtrtlinest	max_noiseR((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRZ¡s<
		#
'

'cC@s|jS(N(Rq(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt
_capabilitiesÐscC@st|j|jƒdS(N(R RRJ(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRnÓscC@s|jƒ|‚dS(N(Rh(Rt	exception((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyROÖs
cC@s‰|jdkrdS|jjƒ|jjƒy1x*|jD]}|jjtdƒ|ƒq:WWntt	fk
rwnX|jjƒdS(Nsremote: (
RHR
R=RIRJRRRtIOErrort
ValueError(RR((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRhÚs

!cc@sâ|jddtj|ƒƒ}|jƒ}t|dƒ}|j|ƒ}||8}|}xu|rÏx6d|kr™|jddƒ\}}tj|ƒVqdWt|dƒ}|j|ƒ}||8}||7}q[Wtj|ƒVdS(Ntbatchtcmdsit;i(RmRtencodebatchcmdst
_getamounttminR4Rutunescapearg(Rtreqtrspt	availablettoreadtworktchunktone((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_submitbatchés
	
cK@sS|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
(RRXRHR1RtcommandsRutsortedt	iteritemstlent
isinstancetdictR>RI(RR_R^t_functnamestkeystwireargstktvtdktdv((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRmüs(

  
cK@s|j||S(N(Rm(RR_R^((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_callcompressablescK@s|j|||jƒS(N(Rmt_recv(RR_R^((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR2sc@s‘|j||}|r"d|fSx-t‡fd†dƒD]}|j|ƒq;W|jddtƒ|jƒ}|rd|fS|jƒdfS(NR7c@s
ˆjdƒS(Ni(R4((tfp(s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt<lambda> sR>(R2titert_sendR*R(RR_RžR^Rwtd((Ržs5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt	_callpushs

c@s~|j||}|r4tjtdƒ|ƒ‚nx-t‡fd†dƒD]}|j|ƒqMW|jddtƒ|jS(Nsunexpected remote reply: %sc@s
ˆjdƒS(Ni(R4((Rž(s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRŸ-sR7R>(R2RtAbortRR R¡R*RI(RR_RžR^RwR¢((Ržs5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt_calltwowaystream(scC@sœ|jjƒ}|dkrM|jƒtdƒ}|jtjd|ƒƒn|jƒyt|ƒSWn0tk
r—|jtj	tdƒ|ƒƒnXdS(Ns
scheck previous remote outputthintsunexpected response:(
RIR6RnRRORtOutOfBandErrortintR}t
ResponseError(RRtmsg((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR‚2s


cC@s|jj|jƒƒS(N(RIR4R‚(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR>scC@sW|jjdt|ƒƒ|r3|jj|ƒn|rI|jjƒn|jƒdS(Ns%d
(RHR1R‘R>Rn(RR3R>((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR¡AscC@s|jdƒt|ƒS(Ntlock(R2R(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR«Is
cC@s|jdƒdS(NR	(R2(R((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR	Msc@sç|jdƒ}|r8|jtjtdƒ|ƒƒnx:t‡fd†dƒD] }|jj|ƒ|jƒqQW|jj	ƒ|jƒ|j
ƒ}|s¢dSyt|ƒSWn0tk
râ|jtj
tdƒ|ƒƒnXdS(s”Send a changegroup to the remote server.  Return an integer
        similar to unbundle(). DEPRECATED, since it requires locking the
        remote.taddchangegroupspush refused: %sc@s
ˆjdƒS(Ni(R4((tcg(s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyRŸWsR7isunexpected response:N(R2RORRPRR RHR1RnR>RR¨R}R©(RR­tsourceRKR«R¢Rw((R­s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR¬Ps#


N(RRR)RRKRZRzRnRORhRRŒRmRœR2R£R¥R‚RR¡R«R	R
R¬(((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyR@{s("		/				
						
				(t
__future__RRti18nRR7RRRtobjectRRR R!twirepeerR@tinstance(((s5/usr/lib/python2.7/dist-packages/mercurial/sshpeer.pyt<module>s			Hë