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/changelog.pyc
ó
ÛXc@@sddlmZddlZddlmZddlmZmZmZddl	m
Z
mZmZm
Z
idd6Zd	„Zd
„Zd„Zd„Zd
efd„ƒYZd„Zd„ZejddƒZdefd„ƒYZdejfd„ƒYZdS(i(tabsolute_importNi(t_(tbinthextnullid(tencodingterrortrevlogtutiltdefaulttbranchcC@s:|jddƒjddƒjddƒ}|jddƒS(	s
    >>> d = {'nl': chr(10), 'bs': chr(92), 'cr': chr(13), 'nul': chr(0)}
    >>> s = "ab%(nl)scd%(bs)s%(bs)sn%(nul)sab%(cr)scd%(bs)s%(nl)s" % d
    >>> s
    'ab\ncd\\\\n\x00ab\rcd\\\n'
    >>> res = _string_escape(s)
    >>> s == res.decode('string_escape')
    True
    s\s\\s
s\ns
s\rss\0(treplace(ttext((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt_string_escapes*cC@s£tjƒ}x|jdƒD]}|rd|krm|jddƒ}|jddƒ}|jddƒ}n|jdƒjdd	ƒ\}}|||<qqW|S(
s¡
    >>> sorted(decodeextra(encodeextra({'foo': 'bar', 'baz': chr(0) + '2'})
    ...                    ).iteritems())
    [('baz', '\x002'), ('branch', 'default'), ('foo', 'bar')]
    >>> sorted(decodeextra(encodeextra({'foo': 'bar',
    ...                                 'baz': chr(92) + chr(0) + '2'})
    ...                    ).iteritems())
    [('baz', '\\\x002'), ('branch', 'default'), ('foo', 'bar')]
    ss\0s\\s\\
s
tt
string_escapet:i(t
_defaultextratcopytsplitRtdecode(Rtextratltktv((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytdecodeextra*s
!cC@s@gt|ƒD] }td|||fƒ^q
}dj|ƒS(Ns%s:%ss(tsortedR
tjoin(tdRtitems((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytencodeextra@s3cC@s5djg|jƒD]}|jƒ^qƒjdƒS(s>strip trailing whitespace and leading and trailing empty liness
(Rt
splitlinestrstriptstrip(tdescR((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt	stripdescEstappendercB@s\eZdZd„Zd„Zd„Zd„Zd„Zdd„Zdd	„Z	d
„Z
RS(s`the changelog index must be updated last on disk, so we use this class
    to delay writes to itcC@sI||_|||ƒ}||_|jƒ|_|j|ƒj|_dS(N(tdatatfpttelltoffsettfstattst_sizetsize(tselftvfstnametmodetbufR&((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt__init__Ls
		cC@s|jtdj|jƒƒS(NR(R+tlenRR%(R,((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytendSscC@s|jS(N(R((R,((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR'UscC@sdS(N((R,((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytflushWscC@s|jjƒdS(N(R&tclose(R,((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR5YsicC@s„|dkr||_n@|dkr6|j|7_n"|dkrX|jƒ||_n|j|jkr€|jj|jƒndS(s,virtual file offset spans real file and dataiiiN(R(R3R+R&tseek(R,R(twhence((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR6\siÿÿÿÿcC@sêd}|j|jkrg|jj|ƒ}|}|jt|ƒ7_|dkrg|t|ƒ8}qgn|dkræ|j|j}|jjddj|jƒƒ|jd3|jd|||!}|jt|ƒ7_||7}n|S(s5only trick here is reads that span real file and dataRii(R(R+R&treadR2R%tinsertR(R,tcounttrettstdoff((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR8gs

cC@s/|jjt|ƒƒ|jt|ƒ7_dS(N(R%tappendtstrR(R2(R,R<((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytwriteys(t__name__t
__module__t__doc__R1R3R'R4R5R6R8R@(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR$Is					c@sdt‡‡fd†}|S(s=build an opener that writes in 'target.a' instead of 'target'trc@s*|ˆkrˆ||ƒSˆ|d|ƒS(Ns.a((R.R/t
checkambig(topenerttarget(s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt_diverts
(tFalse(RFRGRH((RFRGs7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt
_divertopener}sc@sdt‡‡‡fd†}|S(s?build an opener that stores chunks in 'buf' instead of 'target'RDc@s,|ˆkrˆ||ƒStˆ||ˆƒS(N(R$(R.R/RE(R0RFRG(s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt_delay‡s
(RI(RFRGR0RK((R0RFRGs7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt_delayopener…suchangelogrevisionumanifestuuserudateufilesudescriptionuextratchangelogrevisioncB@s•eZdZdZd„Zed„ƒZed„ƒZed„ƒZed„ƒZ	ed„ƒZ
ed	„ƒZed
„ƒZed„ƒZ
RS(
s×Holds results of a parsed changelog revision.

    Changelog revisions consist of multiple pieces of data, including
    the manifest node, user, and date. This object exposes a view into
    the parsed object.
    u_offsetsu_textc
C@sÙ|s1tdtdddddgdddtƒStt|ƒj|ƒ}|jd	ƒ}|jd	|d
ƒ}|jd	|d
ƒ}||d
d	kr¡|}n|jd|d
ƒ}||||f|_||_|S(
NtmanifesttuserRtdateitfilestdescriptionRs
is

(ii(	t_changelogrevisionRRtsuperRMt__new__tindext_offsetst_text(tclsRR,tnl1tnl2tnl3tdoublenl((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRUŸs$		cC@st|jd|jd!ƒS(Ni(RRXRW(R,((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRNÉscC@s,|j}tj|j|dd|d!ƒS(Nii(RWRttolocalRX(R,toff((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyROÍs	cC@s<|j}|j|dd|d!}|jddƒdd!S(Niit i(RWRXR(R,R_t	dateextra((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt_rawdateÒs	cC@sU|j}|j|dd|d!}|jddƒ}t|ƒdkrMdS|dS(NiiR`i(RWRXRR2tNone(R,R_Ratfields((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt	_rawextraØs	cC@sQ|j}t|dƒ}yt|dƒ}Wntk
rFd}nX||fS(Nii(Rbtfloattintt
ValueError(R,trawttimettimezone((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRPâs	

cC@s#|j}|dkrtSt|ƒS(N(ReRcRR(R,Ri((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRîs	cC@sD|j}|d|dkr!gS|j|dd|d!jdƒS(Niiis
(RWRXR(R,R_((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRQös	cC@stj|j|jddƒS(Nii(RR^RXRW(R,((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRRþs(u_offsetsu_text(RARBRCt	__slots__RUtpropertyRNRORbReRPRRQRR(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRM’s	*
t	changelogcB@sûeZd„Zd„Zd„Zd„Zddd„Zej	d„ƒZ
ed„Zd„Z
d	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Zd„Zddd„Zd„ZRS(cC@stjj||ddtƒ|jrD|jtjM_t|_nt|_||_	t|_
d|_t|_
tƒ|_dS(Ns
00changelog.iRE(RR1tTruet
_initemptytversiontREVLOGGENERALDELTARIt
_generaldeltatstoredeltachainst_realopenert_delayedRct	_delaybufRHt	frozensettfilteredrevs(R,RF((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR1s						cC@sGx@tt|ƒdddƒD]"}||jkr|j|ƒSqWdS(sfiltered version of revlog.tipiiþÿÿÿiÿÿÿÿN(txrangeR2Rytnode(R,ti((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyttips#cC@s/d|kot|ƒkno.||jkS(s'filtered version of revlog.__contains__i(R2Ry(R,trev((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt__contains__s"c@s;tˆjƒdkr%tjjˆƒS‡fd†}|ƒS(s#filtered version of revlog.__iter__ic3@s8x1ttˆƒƒD]}|ˆjkr|VqqWdS(N(RzR2Ry(R|(R,(s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytfilterediter&s(R2RyRt__iter__(R,R€((R,s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR!sicc@sAx:tt|ƒj||ƒD]}||jkr|VqqWdS(sfiltered version of revlog.revsN(RTRntrevsRy(R,tstarttstopR|((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR‚-s"cC@s|j|jdƒƒ|jS(Ni(R~R{t
_nodecache(R,((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytnodemap3scC@s|jj||||ƒS(N(RVtreachableroots2(R,tminroottheadstrootstincludepath((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytreachableroots9scC@sQ|jr>y|jj|jƒSWq>tk
r:|jƒSXntt|ƒjƒS(N(RyRVtheadrevsfilteredtAttributeErrort	_headrevsRTRntheadrevs(R,((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR<s	
cO@s-|jst‚tt|ƒj||ŽdS(N(RytAssertionErrorRTRnR!(R,targstkwargs((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR!GscC@sRtt|ƒj|ƒ}||jkrNtjt|ƒ|jtdƒƒ‚n|S(sfiltered version of revlog.revs
filtered node(	RTRnR~RyRtFilteredLookupErrorRt	indexfileR(R,R{RD((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR~Ms
cC@s7||jkr!tj|ƒ‚ntt|ƒj|ƒS(sfiltered version of revlog.node(RyRtFilteredIndexErrorRTRnR{(R,R~((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR{UscC@s7||jkr!tj|ƒ‚ntt|ƒj|ƒS(s"filtered version of revlog.linkrev(RyRR–RTRntlinkrev(R,R~((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR—[scC@s7||jkr!tj|ƒ‚ntt|ƒj|ƒS(s%filtered version of revlog.parentrevs(RyRR–RTRnt
parentrevs(R,R~((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR˜ascC@s7||jkr!tj|ƒ‚ntt|ƒj|ƒS(s filtered version of revlog.flags(RyRR–RTRntflags(R,R~((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR™gscC@sã|jsœt|ƒdkrrt|_|jj|jdƒrW|jj|jdƒnt|j|jƒ|_	qœg|_
t|j|j|j
ƒ|_	nt|_|jdt
|ƒ|jƒ|jdt
|ƒ|jƒdS(s2delay visibility of index updates to other readersis.ascl-%iN(RvR2RoRHRutexistsR•tunlinkRJRFRwRLt
addpendingtidt
_writependingtaddfinalizet	_finalize(R,ttr((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytdelayupdatems				cC@sãt|_|j|_|jrv|js.t‚|jd}|jj|ƒ}|j	ƒ|jj
||jdtƒnS|jrÉ|j|jddtƒ}|jdj
|jƒƒ|j	ƒd|_nt|_|j|ƒdS(sfinalize index updatess.aREtaRN(RIRvRuRFRHRwR‘R•topenR5trenameRoR@RRctcheckinlinesize(R,R¡ttmpnametnfileR&((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR ~s		

	
	cC@s_|jj|ƒsdStj|j|ƒ}|j|_|j|_|j|_|j|_dS(s2read index data from a "pending" file

        During a transaction, the actual changeset data is already stored in the
        main file, but not yet finalized in the on-disk index. Instead, a
        "pending" index is written by the transaction logic. If this function
        is running, we are likely in a subprocess invoked in a hook. The
        subprocess is informed that it is within a transaction and needs to
        access its content.

        This function will read all the index data out of the pending file and
        overwrite the main index.N(RFRšRRVR†R…t_chunkcache(R,tfileRD((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytreadpending’s
cC@s»|jrª|j|jƒ}|jd}|j|ƒ|j|dƒ}|j|jƒƒ|jdj|jƒƒ|jƒd|_t	|_
t|j|jƒ|_n|j
r·t	St
S(sDcreate a file containing the unfinalized state for pretxnchangegroups.atwRN(RwRuR•tregistertmpR@R8RR5RcRoRHRJRFRI(R,R¡tfp1tpendingfilenametfp2((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRž§s	


			cC@s&|js"tjj|||ƒndS(N(RvRR¦(R,R¡R&((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR¦¿s	cC@s=t|j|ƒƒ}|j|j|j|j|j|jfS(sØObtain data from a parsed changelog revision.

        Returns a 6-tuple of:

           - manifest node in binary
           - author/user as a localstr
           - date as a 2-tuple of (time, timezone)
           - list of files
           - commit message as a localstr
           - dict of extra metadata

        Unless you need to access all fields, consider calling
        ``changelogrevision`` instead, as it is faster for partial object
        access.
        (RMtrevisionRNRORPRQRRR(R,R{tc((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR8ÃscC@st|j|ƒƒS(s6Obtain a ``changelogrevision`` for a node or revision.(RMR±(R,t	nodeorrev((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRMÝscC@sC|j|ƒ}|sgS|jdƒ}|| jdƒ}|dS(sX
        short version of read that only returns the files modified by the cset
        s

s
i(R±RVR(R,R{RtlastR((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt	readfilesásc
C@stj|ƒtj|ƒ}}|jƒ}|sItjtdƒƒ‚nd|krwtjtdƒt|ƒƒ‚nt|ƒ}|rŸdtj	|ƒ}
ndtj
ƒ}
|	r|	jdƒ}|d
krÚ|	d=q|dkrtjtdƒ|ƒ‚qn|	r*t|	ƒ}	d|
|	f}
nt
|ƒ||
gt|ƒd|g}dj|ƒ}
|j|
|t|ƒ||ƒS(Nsempty usernames
susername %s contains a newlines%d %dR
R	Rt.tnullR}sthe name '%s' is reserveds%s %s(R	R(R¶R·R}(Rt	fromlocalR!RtRevlogErrorRtreprR#Rt	parsedatetmakedatetgetRRRRtaddrevisionR2(R,RNRQR"ttransactiontp1tp2RORPRt
parseddateR
RR((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytaddìs0
)cC@s5|j|ƒd}tj|jdƒƒd|kfS(s¢return the branch name and open/close state of a revision

        This function exists because creating a changectx object
        just to access this is costly.iR
R5(R8RR^R½(R,R~R((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt
branchinfosN(RARBR1R}RRRcR‚Rt
propertycacheR†RIRŒRR!R~R{R—R˜R™R¢R R«RžR¦R8RMRµRÃRÄ(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRns0																		$(umanifestuuserudateufilesudescriptionuextra(t
__future__Rtcollectionsti18nRR{RRRRRRRRRR
RRR#tobjectR$RJRLt
namedtupleRSRMRn(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt<module>s$"
				4				p