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/hgext/blackbox.pyc
ó
ÛXc@@sødZddlmZddlZddlZddlmZddlmZddl	m
Z
mZm
Z
iZe
jeƒZdZdaiZd„Zd	„Zd
„Zd„Zd„Zed
dddedƒfgedƒƒd„ƒZdS(s¶log repository events to a blackbox for debugging

Logs event information to .hg/blackbox.log to help debug and diagnose problems.
The events that get logged can be configured via the blackbox.track config key.

Examples::

  [blackbox]
  track = *
  # dirty is *EXPENSIVE* (slow);
  # each log entry indicates `+` if the repository is dirty, like :hg:`id`.
  dirty = True
  # record the source of log messages
  logsource = True

  [blackbox]
  track = command, commandfinish, commandexception, exthook, pythonhook

  [blackbox]
  track = incoming

  [blackbox]
  # limit the size of a log file
  maxsize = 1.5 MB
  # rotate up to N log files when the current one gets too big
  maxfiles = 3

i(tabsolute_importN(t_(thex(tcmdutiltuitutilsships-with-hg-corecC@s>|jdƒ}|tkr#t|S|ddƒt|<}|S(Nsblackbox.logta(tjointfilehandles(tvfstpathtfp((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyt_openlog?s
cC@s.|jdƒ}t|}t|=|jƒdS(Nsblackbox.log(RRtclose(R	R
R((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyt	_closelogFs
c@s5d|jf‡fd†ƒY‰ˆ|_ˆt_dS(Nt
blackboxuic@sheZd‡fd†Zd„Zd„Zejd„ƒZd„Z	d„Z
‡fd†Zd„ZRS(	c@s{tˆ|ƒj|ƒ|dkr/|jƒnHt|ddƒ|_t|_t|ddƒ|_t|ddƒ|_	dS(Nt_bbfpt_bbrepot_bbvfs(
tsupert__init__tNonet_partialinittgetattrRtFalset_bbinlogRR(tselftsrc(R(s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyRNs
	cS@s>tj|dƒrdSd|_t|_d|_d|_dS(NR(RtsafehasattrRRRRRR(R((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyRXs			cS@s|jƒ|j|ƒS(N(Rt	__class__(R((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pytcopy`s
cS@s|jdddgƒS(Ntblackboxttrackt*(t
configlist(R((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyR dsc@s‡fd†}tˆjƒ}ˆjdddƒ}|dkrˆjj|ƒ}|j|kr|j}tˆjƒˆjdddƒ}xIt|ddd	ƒD]1}|d
d||dfdd||fƒq¢W|d
|d|dkoö|d
ƒtˆjƒ}qn|S(Nc@sÅyˆjj|ƒWnBtk
rX}|jtjkrYˆjd||jfƒqYnXy |rxˆjj||ƒnWnEtk
rÀ}|jtjkrÁˆjd|||jfƒqÁnXdS(Ns warning: cannot remove '%s': %s
s(warning: cannot rename '%s' to '%s': %s
(RtunlinktOSErrorterrnotENOENTtdebugtstrerrortrename(toldpathtnewpathterr(R(s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pytrotateis		RtmaxsizeiitmaxfilesiiiÿÿÿÿR*s%s.%dR+s.1(	RRtconfigbytestfstattst_sizetnameRt	configinttxrange(RR-RR.tstR
R/ti((Rs2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyt_openlogfilehs 	
cW@s%|jj||ƒ|jjƒdS(N(Rtwritetflush(Rtfmttargs((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyt_bbwriteˆsc	@sˆtˆ|ƒj|||Ž|jƒd|jkrH||jkrHdS|jrZ|}nj|jr¾y|jƒ|_Wn<ttfk
r´}|j	d|j
ƒ|`d|_nX|}nt}|sÕ|jrÙdStsé|j
rò|an|jrÿdSzxt|_tjddƒ}tjƒ}ttjƒƒ}|d|d}	d}
d}|j
rþ|j
d‰ˆjƒ}djg|D]}
t|
jƒƒ^qˆƒ}
|jd	d
tƒrþt|j
jƒƒsòt‡fd†ˆjDƒƒrþd}qþn|jd	dtƒr d
|}nd}y&|jd|||
||||	ƒWn'tk
ru}|j	d|j
ƒnXWdt|_XdS(NR!s*warning: cannot write to blackbox.log: %s
s%Y/%m/%d %H:%M:%Siis	(unknown)tt+Rtdirtyc3@s$|]}ˆj|ƒjƒVqdS(N(tsubR@(t.0ts(tctx(s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pys	<genexpr>ºst	logsources [%s]s%s %s @%s%s (%s)%s> %s(RtlogRR RRR8tIOErrorR$R'R(RtlastuiRRtTrueRtdatestrtgetusertstrtgetpidtparentsRRtnodet
configboolRtanytstatustsubstateR=(RteventtmsgtoptsRR,tdatetusertpidtformattedmsgtrevtchangedRNtpR(R(RDs2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyRFŒs`
				
					
.
		cS@s+d|_t|_||_|j|_dS(N(RRRRRR	R(Rtrepo((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pytsetrepoÊs			N(
t__name__t
__module__RRRRRt
propertycacheR R8R=RFR_((R(s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyRMs
			 	>(RtuimodR(R((Rs2/usr/lib/python2.7/dist-packages/hgext/blackbox.pytwrapuiLsƒ	cC@st|ƒdS(N(Rd(R((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pytuisetupÓscC@s6|jƒsdStj|dƒr2|j|ƒndS(NR_(tlocalRRR_(RR^((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyt	reposetupÖss	^blackboxtltlimiti
sthe number of events to showshg blackbox [OPTION]...c
O@sË|jjdƒsdS|jdƒ}|jddƒ}|jƒjdƒ}d}g}xPt|ƒD]B}	||kr{Pntjd|	ƒrš|d7}n|j|	ƒqeW|j	dj
t|ƒƒƒdS(	s&view the recent repository events
    sblackbox.logNRitrs
is+^\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} .*> .*i(R	texiststgettreadtsplittreversedtretmatchtappendRRR(
RR^trevsRVRiRtlinestcounttoutputtline((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyRàs
(t__doc__t
__future__RR%Rptmercurial.i18nRtmercurial.nodeRt	mercurialRRRcRtcmdtabletcommandt
testedwithRRHRRRRdReRgR(((s2/usr/lib/python2.7/dist-packages/hgext/blackbox.pyt<module>$s&			‡