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/lock.pyc
ó
ÛXc@@s…ddlmZddlZddlZddlZddlZddlZddlmZm	Z	de
fd„ƒYZd„ZdS(i(tabsolute_importNi(terrortutiltlockcB@s›eZdZdZddddddd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zejd„ƒZd
„ZRS(sŠAn advisory lock held by one process to control access to a set
    of files.  Non-cooperating processes or incorrectly written scripts
    can ignore Mercurial's locking scheme and stomp all over the
    repository, so don't do that.

    Typically used via localrepository.lock() to lock the repository
    store (.hg/store/) or localrepository.wlock() to lock everything
    else under .hg/.iÿÿÿÿc		C@s¤||_||_d|_||_||_||_||_||_||_t	|_
t	|_g|_|j
ƒ|_|jƒ|_|jr |jƒndS(Ni(tvfstftheldttimeoutt	releasefnt	acquirefntdesct_inheritcheckert
parentlocktFalset_parentheldt
_inheritedtpostreleaset_getpidtpidRtdelay(	tselfRtfileRRR	R
tinheritcheckerR((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyt__init__)s 													cC@s|S(N((R((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyt	__enter__<scC@s|jƒdS(N(trelease(Rtexc_typet	exc_valuetexc_tb((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyt__exit__?scC@s<|jr.tjddtddƒd|_n|jƒdS(Ns$use lock.release instead of del locktcategoryt
stacklevelii(RtwarningstwarntDeprecationWarningR(R((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyt__del__Bs	cC@s
tjƒS(N(Rtgetpid(R((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyRNscC@s¨|j}x˜tr£y|jƒ|j|SWqtjk
rŸ}|dkrxtjdƒ|dkr|d8}qqntjtj|j	|j
|jƒ‚qXqWdS(Nii(RtTruet_trylockRtLockHeldttimetsleepterrnot	ETIMEDOUTtfilenameR
tlocker(RRtinst((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyRRs		


cC@sr|jr|jd7_dStjdkr=tjƒt_ndtj|jf}d}x|jrm|rm|d8}y#|jj||j	ƒd|_Wq\t
tfk
ri}|jtj
krB|jƒ}||jkrôt|_d|_dS|j|ƒ}|dk	rftjtj|jj|j	ƒ|j|ƒ‚qfqjtj|j|j|j|jƒ‚q\Xq\WdS(Nis%s:%si(RRt_hosttNonetsockettgethostnameRRtmakelockRtOSErrortIOErrorR*tEEXISTt	_readlockRR%Rt	_testlockRR'tEAGAINtjoinR
tLockUnavailabletstrerrorR,(RtlocknametretrytwhyR-((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyR&as4	

		cC@sPy|jj|jƒSWn2ttfk
rK}|jtjkrEdS‚nXdS(s“read lock and return its value

        Returns None if no lock exists, pid for old-style locks, and host:pid
        for new-style locks.
        N(RtreadlockRR4R5R*tENOENTR0(RR?((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyR7‚scC@sè|dkrdSy|jddƒ\}}Wntk
r@|SX|tjkrT|Syt|ƒ}Wntk
rx|SXtj|ƒrŒ|Sy@t|j|j	dddƒ}|jj
|j	ƒ|jƒWntj
k
rã|SXdS(Nt:is.breakRi(R0tsplitt
ValueErrorRR/tintRttestpidRRtunlinkRRt	LockError(RR-thostRtl((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyR8s(

cC@s|jƒ}|j|ƒS(soreturn id of locker if lock is valid, else None.

        If old-style lock, we cannot tell what machine locker is on.
        with new-style lock, if locker is on this machine, we can
        see if locker is alive.  If locker is on this machine but
        not alive, we can safely break lock.

        The lock file is only deleted when None is returned.

        (R7R8(RR-((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyttestlock§scc@sÌ|jstjdƒ‚n|jr6tjdƒ‚n|jdk	rR|jƒn|jrh|jƒn|jr}|j}ndt	j
|jf}t|_z	|VWd|j
r¾|j
ƒnt|_XdS(scontext for the lock to be inherited by a Mercurial subprocess.

        Yields a string that will be recognized by the lock in the subprocess.
        Communicating this string to the subprocess needs to be done separately
        -- typically by an environment variable.
        s-inherit can only be called while lock is helds8inherit cannot be called while lock is already inheriteds%s:%sN(RRt LockInheritanceContractViolationRRR0RRRRR/RR%R	R
(RR=((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pytinheritµs&		
	
				
cC@sÞ|jdkr!|jd8_n¹|jdkrÚd|_|jƒ|jkrRdSz|jrk|jƒnWd|js¦y|jj|jƒWq¦tk
r¢q¦XnX|jsÚx|j	D]
}|ƒqºWd|_	qÚndS(s¬release the lock and execute callback function if any

        If the lock has been acquired multiple times, the actual release is
        delayed to the last release call.iiN(RRRRRRRGRR4RR0(Rtcallback((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyRÓs$			
	N(t__name__t
__module__t__doc__R0R/RRRR#RRR&R7R8RKt
contextlibtcontextmanagerRMR(((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyRs
							!	
		cG@s.x'|D]}|dk	r|jƒqqWdS(N(R0R(tlocksR((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyRðs
(
t
__future__RRRR*R1R(R tRRtobjectRR(((s2/usr/lib/python2.7/dist-packages/mercurial/lock.pyt<module>sÛ