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/transaction.pyc

Xc@@sddlmZddlZddlmZddlmZmZdZe	ddgZ
d	Zd
ZdZ
dZed
ZdefdYZdZdS(i(tabsolute_importNi(t_(terrortutilit	bookmarkstdirstatetalltprefinalizetpostfinalizec@sfd}|S(Nc@s7|jdkr'tjtdn|||S(Nis;cannot use transaction when it is already committed/aborted(tcountRtAbortR(tselftargstkwds(tfunc(s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt_active's	((RR((Rs9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytactive&scC@sx|D]\}}}	|s#|ry0||ddt}
|
j||
jWqtk
r}|td|qXqy|j|Wqttfk
r}|jtjkrqqXqWg}xL|D]D\}
}}}|
|kr|r|d||
fn||
}y|r|r|j	|}|j	|}y't
j||dt|j|Wqtk
r|td|qXnQ|p|}y|j|Wn1ttfk
r}|jtjkrqnXWqttt
jfk
r}|sqqXqWd|}|j|rH|j|n|j|y4x-|D]%}|j|r_|j|q_q_WWnttt
jfk
r}nXdS(Ntat
checkambigsfailed to truncate %s
s.couldn't handle %s: unknown cache location %s
sfailed to recover %s
s%s.backupfiles(tTruettruncatetclosetIOErrorRtunlinktOSErrorterrnotENOENTtjoinRtcopyfiletappendRR
texists(tjournaltreporttopenertvfsmaptentriest
backupentriesRtftot_ignoretfptinsttbackupfilestltbtctvfstfilepatht
backuppathttarget((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt	_playback.s`








ttransactioncB@seZddddddZdZedZedZeddZdZ	ee
ddZdZedd	Z
ed
ddZdedZed
ZeddZedZdZdZdZdZdZedZedZedZedZedZedZdZdZ RS(c

C@sd|_d|_||_||_|j}||d<||_||_g|_i|_||_	||_
g|_|d	krd}n||_
|	d	krd}	n|	|_i|_|j|j	d|_g|_i|_d|j	|_|j|jd|_|jjdt|d	k	rg|j|j	|d@|j|j|d@ni|_i|_t|_i|_i|_i|_d	S(
sbBegin a new transaction

        Begins a new transaction that allows rolling back writes in the event of
        an exception.

        * `after`: called after the transaction has been committed
        * `createmode`: the mode of the journal file that will be created
        * `releasefn`: called after releasing (with transaction and result)
        itcS@sdS(N(tNone(ttr((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt<lambda>scS@sdS(N(R5(R6tsuccess((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyR7stws%s.backupfiless%d
iN( R	tusagesR R!tcopyt_vfsmaptafterR#tmapRtundonamet_queueR5t	validatort	releasefnthookargstopentfilet_backupentriest
_backupmapt_backupjournalt_backupsfiletwritetversiontchmodt_filegeneratorst_pendingcallbacktFalset_anypendingt_finalizecallbackt_postclosecallbackt_abortcallback(
RR R!R"tjournalnameR?R=t
createmodeRARB((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt__init__gsF				
																	cC@s|jr|jndS(N(Rt_abort(R((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt__del__s	cC@s|jjgdS(sdelay registration of file entry

        This is used by strip to delay vision of strip offset. The transaction
        sees either none or all of the strip actions to be done.N(R@R(R((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt
startgroupscC@s@|jj}x*|D]"\}}}|j|||qWdS(sapply delayed registration of file entry.

        This is used by strip to delay vision of strip offset. The transaction
        sees either none or all of the strip actions to be done.N(R@tpopt	_addentry(RtqR%R&tdata((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytendgroupscC@sc||jks||jkr"dS|jrL|jdj|||fdS|j|||dS(s5record the state of an append-only file before updateNi(R>RGR@RR[(RREtoffsetR]((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytadds	cC@s||jks||jkr"dS|jj|||ft|jd|j|<|jjd||f|jjdS(s3add a append-only entry to memory and on-disk stateNis%s%d
(R>RGR#RtlenRERJtflush(RRER_R]((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyR[sR4cC@s|jrd}t|n||jks<||jkr@dS|j|}|j|\}}d|j|f}|j||}	|j|r|j	|}
|j	|	}t
j|
|d|nd}	|j|||	t
fdS(sWAdds a backup of the file to the transaction

        Calling addbackup() creates a hardlink backup of the specified file
        that is used to recover the file in the event of the transaction
        aborting.

        * `file`: the file path, relative to .hg/store
        * `hardlink`: use a hardlink to quickly create the backup
        s/cannot use transaction.addbackup inside "group"Ns%s.backup.%sthardlinkR4(R@tRuntimeErrorR>RGR<tsplitRtreljoinRRRRt_addbackupentryRO(RRERctlocationtmsgR.tdirnametfilenametbackupfilenamet
backupfileR/R0((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt	addbackups	
cC@sS|jj|t|jd|j|d<|jjd||jjdS(s0register a new backup entry and write it to diskis%s%s%s%d
N(RFRRaRGRIRJRb(Rtentry((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyRgscC@s|j|d|tfdS(sregister a temporary transaction file

        Such files will be deleted when the transaction exits (on both
        failure and success).
        R4N(RgRO(RttmpfileRh((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytregistertmpsicC@s||||f|j|<dS(sadd a function to generates some files at transaction commit

        The `genfunc` argument is a function capable of generating proper
        content of each entry in the `filename` tuple.

        At transaction close time, `genfunc` will be called with one file
        object argument per entries in `filenames`.

        The transaction itself is responsible for the backup, creation and
        final write of such file.

        The `genid` argument is used to ensure the same set of file is only
        generated once. Call to `addfilegenerator` for a `genid` already
        present will overwrite the old entry.

        The `order` argument may be used to control the order in which multiple
        generator will be executed.

        The `location` arguments may be used to indicate the files are located
        outside of the the standard directory for transaction. It should match
        one of the key of the `transaction.vfsmap` dictionary.
        N(RM(Rtgenidt	filenamestgenfunctorderRh((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytaddfilegeneratorsc
C@s%t}xt|jjD]\}}t}|\}}}}	|tk}
|tkrp|tk|
krpqn|j|	}g}z{xj|D]b}
|
|7}
|r|j	|
d|	n|j
|
d|	|j||
ddtd|qW||Wdx|D]}|jqWXqW|S(NRhR9t
atomictempR(
ROtsortedRMt	iteritemsRtgengrouppostfinalizetgengroupalltpostfinalizegeneratorsR<RqRnRR(RtsuffixtgrouptanytidRoRuRsRtRhRR.tfilestnameR%((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt_generatefiles#s,"



cC@sF||jkr!|j|j|S||jkrB|j|j|SdS(N(R>R#RGRFR5(RRE((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytfindAs
cC@sl||jkrt|n|j|}|||f|j|<|jjd||f|jjdS(sn
        replace can only replace already committed entries
        that are not pending in the queue
        s%s%d
N(R>tKeyErrorR#RERJRb(RRER_R]tindex((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytreplaceIs
cC@s"|jd7_|jd7_|S(Ni(R	R:(R((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytnestWscC@sP|jdkr!|jd8_n|jdkrL|jdkrL|jndS(Nii(R	R:RW(R((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytrelease]scC@s|S(N((R((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt	__enter__dscC@s/z|dkr|jnWd|jXdS(N(R5RR(Rtexc_typetexc_valtexc_tb((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt__exit__gscC@s
|jdkS(Ni(R	(R((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytrunningnscC@s||j|<dS(sadd a callback to be called when the transaction is pending

        The transaction will be given as callback's first argument.

        Category is a unique identifier to allow overwriting an old callback
        with a newer callback.
        N(RN(Rtcategorytcallback((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt
addpendingqscC@slt|j}x8|D]0}|jj||}|jp@||_qW|j|jddO_|jS(spwrite pending file to temporary version

        This is used to allow hooks to view a transaction before commitR}s.pending(RxRNRZRPR(Rt
categoriestcatR((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytwritepending{s
cC@s||j|<dS(sadd a callback to be called when the transaction is closed

        The transaction will be given as callback's first argument.

        Category is a unique identifier to allow overwriting old callbacks with
        newer callbacks.
        N(RQ(RRR((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytaddfinalizes	cC@s||j|<dS(sadd a callback to be called after the transaction is closed

        The transaction will be given as callback's first argument.

        Category is a unique identifier to allow overwriting an old callback
        with a newer callback.
        N(RR(RRR((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytaddpostcloses	cC@s||j|<dS(sadd a callback to be called when the transaction is aborted.

        The transaction will be given as the first argument to the callback.

        Category is a unique identifier to allow overwriting an old callback
        with a newer callback.
        N(RS(RRR((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytaddaborts	c
C@sG|jdkry|j||jdtt|j}x|D]}|j||qBWd|_|jdtn|jd8_|jdkrdS|jj	|j
j	x|jD]\}}}}||jkr|r|j
d||fqn|j|}|r|r|j|ry|j|Wqtttjfk
r}|sgn|j
d|j||fqXqqWg|_|j|jr|jn|jj|jr|jj|jn|jj|jr|jj|jnx|jD]\}}	}}||jkr_|r_|j
d||fqn|j|}|r|j|ry|j|Wqtttjfk
r}|sn|j
d|j||fqXqqWg|_d|_|j|tt|j}x|D]}|j||qWd|_dS(scommit the transactioniR~iNs.couldn't remove %s: unknown cache location %s
scouldn't remove %s: %s
s-couldn't remove %s: unknown cache location%s
(R	RARtgengroupprefinalizeRxRQR5RzRERRIRFR<R RRRRRR
RR#t
_writeundoR=R!tisfileRHRRBRRR(
RRRR+R%R,R-R.R)t_f((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyRsp

	

	
	"	
	
	
	"		
cC@s|jdS(sabort the transaction (generally called on error, or when the
        transaction is not explicitly committed before going out of
        scope)N(RW(R((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytabortscC@sm|jdkrdS|jjd|jd}|jdtx|jD]\}}}}|shqJn|swd}n||jkr|r|jd||fqJn|j|}|j	|\}}	|	j
|jst|	|	j
|j|jd}
|j||
}tj|j||j|dt|jd	||||fqJW|jdS(
s4write transaction data for possible future undo callNs%s.backupfilesR9s%d
R4s-couldn't remove %s: unknown cache location%s
iRcs%s%s%s%d
(R?R5R!RDRJRKRFR<R Ret
startswithRtAssertionErrorRRfRRRRR(RtundobackupfileR+R%R,R-tuR.tbaseRtuname((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyRs*		
(!cC@sZd|_d|_|jj|jjz
|jr|jr|jrb|jj	|jn|j
r|jj	|j
ndS|jtdyyx(t
|jD]}|j||qWd|_t|j
|j|j|j|j|jt|jtdWn$tk
r7|jtdnXWdd|_
|j|tXdS(Nistransaction abort!
srollback completed
s(rollback failed - please run hg recover
(R	R:RERRIR#RFRHR!RRR RRxRSR5R2R<ROt
BaseExceptionRB(RR((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyRWs.		

			
	N(!t__name__t
__module__R5RVRXRRYR^R`R[RRnRgRqRvR{RRRRRRRRRRRRRRRRRW(((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyR3fsDE	

	
	
					

E	cC@sg}g}|j|}|j}|jxk|D]c}y5|jd\}	}
|j|	t|
dfWq8tk
r|td|q8Xq8Wd|}|j	|rt|j|}|j}|rt|dd }|t
tkr^xr|dD]S}
|
r|
d }
|
jd\}}	}}|j||	|t|fqqWqq|tdqtnt
||||||dS(	sRolls back the transaction contained in the given file

    Reads the entries in the specified file, and the corresponding
    '*.backupfiles' file, to recover from an incomplete transaction.

    * `file`: a file containing a list of entries, specifying where
    to truncate each file.  The file should contain a list of
    fileoffset pairs, delimited by newlines. The corresponding
    '*.backupfiles' file should contain a list of filebackupfile
    pairs, delimited by .
    ss couldn't read journal entry %r!
s%s.backupfilesiiis8journal was created by a different version of Mercurial
N(RDt	readlinesRReRtintR5t
ValueErrorRRtstrRKtboolR2(R!R"RER R#R$R(tlinesR+R%R&t
backupjournaltvertlineR,R-((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pytrollback-s2

 


)(t
__future__RRti18nRR4RRRKtsetR|R{RRzRRR2tobjectR3R(((s9/usr/lib/python2.7/dist-packages/mercurial/transaction.pyt<module>s		7