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/hook.pyc
ó
ÛXc@@sÁddlmZddlZddlZddlZddlmZddlmZm	Z	m
Z
mZd„Zd„Z
eƒZd„Zed	„Zead
„Zed„Zed„ZdS(
i(tabsolute_importNi(t_(tdemandimportterrort
extensionstutilc
C@sHt|ƒr)|}|jd|j}nY|jdƒ}|dkrftjtdƒ||fƒ‚n|| }	tj}
t	j
ƒrÉtjj|	ƒ\}}|rÉ|rÉtj|gt_|}	qÉnt
jƒyt|	ƒ}Wnøttfk
ràtjƒ}
ytd|	ƒ}Wqáttfk
rÜtjƒ}|jr]|jtdƒƒn|j|
ƒ|jr‰|jtdƒƒn|j|ƒ|js®tdƒ}nd
}tjtdƒ||	fd	|ƒ‚qáXnXWd
QX|
t_y1x*|jdƒdD]}t||ƒ}qWWn0tk
rStjtdƒ||fƒ‚nXt|ƒs‚tjtd
ƒ||fƒ‚n|jtdƒ||fƒtjƒ}zy`tjtjtjf}|j|j|j t_t_t_|d|d|d||}Wn¥t!k
rµ}t"|tj#ƒrY|jtdƒ||j$dfƒn|jtdƒ||fƒ|r‚‚n|js¡|jtdƒƒn|jƒt%t%fSXWd
|\t_t_t_tjƒ|}|j&dd|||ƒX|r>|r$tj'tdƒ|ƒ‚n|jtdƒ|ƒn|t(fS(sŸcall python hook. hook is callable object, looked up as
    name in python module. if callable returns "true", hook
    fails, else passes. if hook raises exception, treated as
    hook failure. exception propagates if throw is "true".

    reason for "true" meaning "hook failed" is so that
    unmodified commands (e.g. mercurial.commands.update) can
    be run as hooks without wrappers to convert return values.t.iÿÿÿÿs(%s hook is invalid: "%s" not in a moduleshgext_%ss,exception from first failed import attempt:
s-exception from second failed import attempt:
s$run with --traceback for stack traces)%s hook is invalid: import of "%s" failedthintNis'%s hook is invalid: "%s" is not defineds(%s hook is invalid: "%s" is not callablescalling hook %s: %s
tuitrepothooktypeserror: %s hook failed: %s
is'error: %s hook raised an exception: %s
s'(run with --traceback for stack trace)
t
pythonhooks,pythonhook-%s: %s finished in %0.2f seconds
s%s hook failedswarning: %s hook failed
()tcallablet
__module__t__name__trfindRt
HookLoadErrorRtsystpathRt
mainfrozentostsplitRtdeactivatedt
__import__tImportErrortSyntaxErrortexc_infot
tracebackflagtwarnt	tracebacktNonetgetattrtAttributeErrortnotettimetstdouttstderrtstdintfouttferrtfint	Exceptiont
isinstancetAborttargstTruetlogt	HookAborttFalse(RR	tnamethnametfuncnameR,tthrowtobjtdtmodnametoldpathstmodpathtmodfilete1te2t
tracebackhinttpt	starttimetoldtrtexctduration((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyt_pythonhooksš
	
	
	
	
		$	
		&"	
cC@sÍ|jtdƒ||fƒtjƒ}i}|dk	r||jƒ}|jj|ƒ|r||jƒr||j|d<q|nx…|j	ƒD]w\}	}
t
|
ƒr­|
ƒ}
nt|
tƒrìddj
d„t|
j	ƒƒDƒƒd}
n|
|d|	jƒ<q‰W|r|j}ntjƒ}|j|d|d	|ƒ}tjƒ|}
|jd
d|||
ƒ|rÉtj|ƒ\}}|r©tjtdƒ||fƒ‚n|jtd
ƒ||fƒn|S(Nsrunning hook %s: %s
t
HG_PENDINGt{s, cs@s|]}d|VqdS(s%r: %rN((t.0ti((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pys	<genexpr>st}tHG_tenvirontcwdtexthooks)exthook-%s: %s finished in %0.2f seconds
s
%s hook %sswarning: %s hook %s
(R!RR"Rtcurrenttransactiontdirstatetwritetwritependingtroott	iteritemsRR*tdicttjointsortedtupperRtgetcwdtsystemR.RtexplainexitRR/R(RR	R1tcmdR,R4R?tenvttrtktvRLRARCtdesc((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyt_exthook|s8&

" cC@sÅt|ƒ}t|dtƒ}xo|jƒD]a\}}|j|dd|tfƒ}||kr+|\}}}}	|||tf||<q+q+Wgt|jƒƒD]\}
}}}
||
f^q£S(s8return a list of (hook-id, cmd) pairs sorted by priorityt
_untrustedN(t
_hookitemsR-titemstgetRt_fromuntrustedRVtvalues(RthookstuntrustedhooksR1tvaluettrustedvaluetlptlotlktlvR>toR^R_((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyt	_allhooks§scC@sxi}xk|jdd|ƒD]T\}}|jdƒs|jdd|dƒ}|t|ƒ||f||<qqW|S(s)return all hooks items ready to be sortedRht	untrustedtpriorityspriority.%si(tconfigitemst
startswitht	configinttlen(RRbRhR1R[Rs((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyRc¶s"$cC@s
|adS(N(t	_redirect(tstate((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pytredirectÀsc
K@s¸|js
tSg}xOt|ƒD]A\}}|jdƒd|kr |r |j||fƒq q Wt||||d||}t}	x(|D] \}}||dp­|	}	qW|	S(NRiR4(t	callhooksR0RqRtappendtrunhooks(
RR	R1R4R,RhR2R[tresRA((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pythookÄs	c	K@sËi}d}z…x~|D]v\}}	|dkrºtrºyitjjƒ}
tjjƒ}|
dkrœ|dkrœtjjƒtj|
ƒ}tj||
ƒnWqºt	t
fk
r¶qºXn|	tkr|rôtj
tdƒ|dtdƒƒ‚n|jtdƒ|ƒd}t}
nUt|	ƒrMt|||||	||ƒ\}}
n"|	jdƒrN|	jd	ƒd
kr|	djd	dƒ\}}	tj|ƒ}|r½tjj|j|ƒ}nytj|d|ƒ}Wn+tk
r|jtd
ƒ|ƒ‚nXt||	ƒ}n|	dj ƒ}t|||||||ƒ\}}
n!t!||||	||ƒ}t}
||
f||<tj"jƒqWWdtrÆ|dkrÆtj||
ƒtj#|ƒnX|S(Niÿÿÿÿisuntrusted hook %s not executedRssee 'hg help config.trusted's(warning: untrusted hook %s not executed
ispython:t:iis	hghook.%ssloading %s hook failed:
($RxRt
__stdout__tfilenot
__stderr__tflushRtduptdup2tOSErrorR RfRR/RRR0RRDRutcounttrsplitRt
expandpathRRURRRtloadpathR)RPRtstripRaR$tclose(RR	R1RhR4R,R~t	oldstdoutR2R[tstdoutnotstderrnoRAtraisedRtmodthookfn((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyR}Ós^
	'
(t
__future__RRRR"ti18nRtRRRRRDRatobjectRfRqR0RcRxRzRR}(((s2/usr/lib/python2.7/dist-packages/mercurial/hook.pyt<module>s"	f	)